Jupyterlab desktop6/5/2023 # At this point I'm able to run a Jupyter notebook inside my environment with the Jupyterlab desktop app. # jupyterlab was not installed successfully, maybe an issue with the ipykernel above # In "Set Python Environment", I set "/Users/ptoche/miniconda3/envs/vs/bin/python3.9", but Jupyterlab desktop complains it cannot find jupyterlab inside my environment, so I install it:Ĭonda install -c conda-forge -name vs -update-deps -force-reinstall ipykernel -y I’m not sure I did it right to be honest, because I had to install jupyterlab from the command line to be able to use jupyterlab desktop… For the record, here were the steps: # Steps to install jupyter notebook in a clean environmentĬonda install numpy scipy pandas matplotlib statsmodels seaborn At this point I’m happy to have regained the ability to run Jupyter notebooks without a browser and in a dedicated environment! Re-install the program with the default path. Copy the D:\JupyterLab\resources\jlabserver folder under the D: drive path to the C:\JupyterLab\resources path, and then reopen the program. I’ll report back if I have any success in repairing jupyter. When running the desktop program, C:\JupyterLab\resources\jlabserver\python.exe cannot be found. I had been using nteract up to this point, which is rather limiting, and the desktop app looked very promising. My interest in the JupyterLab desktop app was because I do not want the notebooks to open in browsers. UPDATE: Jupyter is working! JupyterLab desktop is working! It’s able to find my environment and use the dedicated kernel!īackground: I probably didn’t need Jupytext after all, since I do not plan to edit notebooks: my use case is to generate notebooks from markdown. It’s too much of a mess at this point: I’m going to destroy the environment and try again one last time. jupyter in particular) and now nothing works at all (cannot run any code without “cannot generate requests” or “kernel cannot be started” or complaints about the ipykernel, which I have installed in the environment). Thanks and tried to reinstall Jupyter with/without the desktop app, after cleaning all the Jupyter environment variables I could find (inside Library and. py file and select “open with” the only choice I get is “editor”, evidence that Jupytext is not available. (j)$ jupyter nbextension enable -py jupytext The Jupytext extension wasn’t present in the menu, so I tried this: (j)$ jupyter nbextension install -py jupytext (j)$ conda install jupytext -c conda-forge To add Jupytext, I followed the instructions: $ conda activate j However, the following seemed to have solved any issues: (j)$ conda install nb_conda (j)$ ipython kernel install -user -name=myJupyterLabKernelĪfter restarting Jupyterlab, the new kernel was available. Here’s how I got JupyterLab desktop to run a notebook in environment.I have managed to create a kernel inside the environment, which I can select from the notebook (top-right corner) and all seems well (the notebook runs using libraries that are only installed in that environment). I want to work in one particular environment. I’m on MacOS BigSur and downloaded the executable for the JupyterLab desktop app. I’m new to JupyterLab and would like to set up Jupytext.
0 Comments
Leave a Reply. |