Update: I conclude from discussions with others that this is a genuine bug; the web versions of JupyterLab do not currently allow you to access files.
When I run JupyterLab over the web, e.g. from Jupyter.org/try, I have several difficulties with files. I think something got corrupted -- how can I get a normal JupyterLab environment? Here are some of the problems:
1) I can not access files from my machine. The command os.chdir("C:")
gives the error
FileNotFoundError: [Errno 44] No such file or directory: 'C:'
2) I can not access files from the web. First the command import pandas as pd
gives the error
Could not import the lzma module. Your installed Python is incomplete
Then the command pd.read_csv("https://data.nasa.gov/api/views/7qz6-zrqt/rows.csv")
(which reads a readily accessible csv file) gives the error
URLError: <urlopen error unknown url type: https>
3) I can not access the files that I upload into the folders visible at left of the screen. The command pwd
returns '/home/pyodide'
but no amount of moving around from that directory seems to get me to a directory with the files I uploaded or the notebooks I created.
4) I can not delete some of the files visible in the folders at the left of the screen. E.g.: I don't remember uploading or modifying the file "Lorenz.ipynb". I try to delete it, and I press "Delete" at this screen, but the file remains.
I also have JupyterLab installed directly on my machine, where it runs without these problems -- but I am trying to convince people that JupyterLab by web is an easy way of getting into Python, and these errors are preventing that. How can I get JupyterLab working normally over the web?