Wikipedia:Reference desk/Archives/Computing/2020 October 15

= October 15 =

Opening and Listing Simple Python Script
Someone has sent me a few simple Python scripts. I was told that I could run them using the console. Fair enough. I can load a script with "import " in the console, but I can't see what I just imported. I downloaded Jupyter-Lab, but when I try to open the .py file, it opens it as text. I suppose I could open a new iPython notebook and copy the text into it, but I feel I'm overlooking something very obvious with both the console and Jupyter-Lab. Why can't I just open the script file and have it, you know, *open*, like in every other IDE I've used in the past 25 years? OldTimeNESter (talk) 23:35, 15 October 2020 (UTC)
 * You can't. Jupyter lab files must be in notebook format with ipynb extention. You can open Python files in any editor or IDE (except Jupyter). Sleigh (talk) 00:59, 16 October 2020 (UTC)