Edge Rewrite
// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a29d615a38d177be

Jump to content

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

From Wikipedia, the free encyclopedia
Computing desk
< October 14 << Sep | October | Nov >> October 16 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


October 15

[edit]

Opening and Listing Simple Python Script

[edit]

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 <script>" in the console, but I can't see what I just imported. I downloaded Jupyter-Lab, but when I try to open the <script>.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)reply

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)reply