saving . . . saved run python script has been deleted. run python script has been hidden .
run python script
Title
Question
I saved a portion of my command history as plot_script.py file.How to open the file?
While opening it asks for application to open the file.If file is opened as text file then while using run command there is a problem.  %run (<file name>) is executed without any error but when I use show() it does show the plot in figure window. Why this is so?



Python-3.4.3 Additional-features-of-IPython 08-09 min 0-10 sec 22-04-20, 12:04 a.m. gourihalde@gmail.com

Answers:

Yes, you can open a .py file using any simple text editor. It should not cause any issues.

Please confirm that the code in your plot_script.py file is correct and is using a plot command to be able to see a plot after using show(). In case it is possible please use pastebin.com to add your code from plot_script.py and add the link here so that we can tell you the exact issue with your code.
22-04-20, 10:10 a.m. ankitrj.iitb


Log-in to answer to this question.