{"id":50600,"date":"2022-05-09T21:47:57","date_gmt":"2022-05-09T21:47:57","guid":{"rendered":"https:\/\/www.thepicpedia.com\/faq\/how-do-i-open-a-python-file-in-jupyter-notebook\/"},"modified":"2022-05-09T21:47:57","modified_gmt":"2022-05-09T21:47:57","slug":"how-do-i-open-a-python-file-in-jupyter-notebook","status":"publish","type":"post","link":"https:\/\/www.thepicpedia.com\/faq\/how-do-i-open-a-python-file-in-jupyter-notebook\/","title":{"rendered":"How do i open a python file in jupyter notebook?"},"content":{"rendered":"
Anaconda should add itself to the PATH variable so you can start any . py file with “python yourpythonfile.py” and it should work from any folder. Alternatively download pycharm community edition, open your python file there and run it. Make sure to have python.exe added as interpreter in the settings.<\/p>\n<\/p>\n
Enter the “python” command and your file’s name. Type in python file.py where file is your Python file’s name. For example, if your Python file is named “script”, you would type in python script.py here.<\/p>\n<\/p>\n
Saving your edits is simple. There is a disk icon in the upper left of the Jupyter tool bar. Click the save icon and your notebook edits are saved.<\/p>\n<\/p>\n