# 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: **38 times**

Last updated: **May 09**

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

LaTeX table from an HTML table

Towered extension fields through chosen polynomial

'CyclicCode_with_category' object has no attribute 'gen_mat'

Elliptic Curve Rational Field Height CODE

Normalization (integral closure)

Adding Code To My SageMath Notebook

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

%paste leads to dyld: Symbol not found: _sqlite3_intarray_bind

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?