Ad-Hoc, Jupyter-like code "cells"
Note
- Your environment must have the
ipykernel
package installed. - I have only tested this with VSCode. It should work in any IDE that supports
ipykernel
(i.e. JetBrains), from what I've read, but I have not tested it anywhere else.
You can create ad-hoc "cells" in any .py
file (i.e. notebook.py
, nb.py
, etc) by adding # %%
line(s) to the file.
You can also create multiple code cells by adding more # %%
lines:
notebook.py | |
---|---|
