# Code and markdown cell

Another perhaps stupid question : can we insert code inside a markdown cell, in such a way it can be evaluated ?

Code and markdown cell

0

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

`square`

by`def square(x): return x * x`

Some Jupyter Notebook and JupyterLab extensions allow to evaluate code in a Mardown cell in Jupyter. See:

Asked: **
2020-05-09 08:30:22 -0500
**

Seen: **54 times**

Last updated: **May 09**

LaTeX table from an HTML table

How to draw a graph whose vertices are elements of permutation group

Simply trying to understand these lines of code

Towered extension fields through chosen polynomial

How would I transfer code from a notebook to this forum?

Elliptic Curve Rational Field Height CODE

Is it possible to run over the isomorphism classes of groups?

Is there any code to calculate the subgroup generated by the permutations

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.

Do you mean code to be displayed, or code to be evaluated?