Skip to main content

Jupyter Cell inside py file

Adding jupyter cell inside a python file (.py file)

# %% # to make jupyter cell inside .py file
"hello world"


here the '# %%' does the work, and any python code including function, oop etc can be used in it