To convert a Jupyter Notebook to nbconvert without using magic commands or markdown, you can use the following steps:
jupyter nbconvert --to=python <notebook-name>.ipynb
, replacing <notebook-name>
with the name of your notebook file (without the .ipynb extension).Note that if your notebook contains any non-Python code (such as SQL or R), you will need to modify it accordingly to ensure that it can be properly converted to a .py file.
Asked: 2021-11-17 11:00:00 +0000
Seen: 9 times
Last updated: Jul 21 '21