| 1 | initial version |
To display code in a Markdown cell in Jupyter, use single backticks for inline code, triple backticks for code blocks.
For example:
In the next cell we will define `square` by
```
def square(x):
return x * x
```
will render as
In the next cell we will define
squarebydef square(x): return x * x
Some Jupyter Notebook and JupyterLab extensions allow to evaluate code in a Mardown cell in Jupyter. See:
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.