Summary
I’m new to this forum, new to getting on board with jupyter lab and a complete noob. You’ve been warned. I hope it is worthwhile for me to share the trouble shooting steps I took to solve an issue I was having in getting JupyterLab running. The problem I needed to sort out was why I couldn’t get Jupiter Lab running on my MacBook Pro running macOS Monterey Version 12.3.1 . This was especially perplexing since I had used the same steps with success on a different older Mac running El Capitan where the installation worked fine.
Installation Steps
This how I installed Jupyter Lab on both macs:
First I downloaded and installed pip
~$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
~$ python3 get-pip.py
I then installed jupyterlab:
~$ pip3 install jupyterlab
Trouble
I then tried to invoke jupyter lab:
~$ jupyter-lab
I got the following message:
<-bash: jupyter-lab: command not found>
Testing
Next I checked my /etc/paths
file and it contains the following paths:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
I confirmed that both pip3 and python3 were located in /usr/bin.
Next I checked the installed packages with $ pip3 list
and it shows the jupyter packages that have been installed:
jupyter-client 7.3.0
jupyter-core 4.10.0
jupyter-server 1.17.0
jupyterlab 3.4.0
jupyterlab-pygments 0.2.2
jupyterlab-server 2.13.0
Convinced that the installation was probably okay I went looking for the jupyter-lab
command.
$ sudo find / -name *jupyter*
I found the jupyter-lab
shell script is located at:
/Library/Frameworks/Python.framework/Versions/3.7/bin
This was interesting, because in my El Capitan installation the jupyter-lab
shell script is located in a different directory. A location that would require no change to the paths
file.
/usr/local/bin/
Fix and Conclusion
The fix was to simply add the path /Library/Frameworks/Python.framework/Versions/3.7/bin
to the paths
file. The conclusion is that the installation process may not put the jupyter-lab
shell script in the same place depending on what version of mac OS you are using. This means finding that shell script and updating the paths file accordingly. I would be interested to hear anyone else’s experience. Also, I intend to try a Linux installation.
Kind regards, glydeck