Different Methods to Create Python Files in Jupyter Notebook
Jupyter Notobook is one excellent IDE for Python Developers
From this article, I will introduce some pretty handy features that we should know earlier. If you are interested in learning July notebooks, please follow me, and then you will not miss one of them.
We can create .py
files easily in other IDE, such as PyCharm, VS Code, Spyder, only name few. Many people think Jupyter note can only create .ipynb
extension files, which is short for Ipython Jupyter Notebook. Actually, there are several ways to create Python (.py
) extension files. In this article, I will display four handy ways to create Python (.py
) extension files, which can be run directly in other Python IDEs.
1. Use built-in text editor
Go to the New drop-down button in the top-right on the Dashboard, and select Text File to open the text editor.
Rename the file to any name with .py
extension first. For example, we rename the file to hi.py
. I stress first here because the code will indent automatically only when you change the file name to .py
file first. Otherwise, you have to indent codes…