Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:advanced:jupyter [2022/03/28 11:09] – [Step 1: Install JupyterLab] gkazhoya | tutorials:advanced:jupyter [2022/07/06 11:40] (current) – [Step 2: Download the source code for the Jupyter Common Lisp kernel] gkazhoya | ||
---|---|---|---|
Line 9: | Line 9: | ||
You need Python3 to install the newest version of JupyterLab. | You need Python3 to install the newest version of JupyterLab. | ||
- | This installation was tested on Ubuntu 16.04 but should work on 18.04 and 20.04 as well. | + | This installation was tested on Ubuntu 16.04 and 20.04 (python 3.8). |
Line 17: | Line 17: | ||
<code bash> | <code bash> | ||
- | $ sudo apt-get install python3-pip python3-dev | + | $ sudo apt install python3-pip python3-dev |
</ | </ | ||
Line 37: | Line 37: | ||
<code bash> | <code bash> | ||
$ roscd && cd ../src | $ roscd && cd ../src | ||
- | $ mkdir jupyter | + | $ catkin_create_pkg |
$ cd jupyter | $ cd jupyter | ||
- | $ curl -O https:// | + | $ curl -O https:// |
- | $ wstool merge common-lisp-jupyter.rosinstall && wstool update | + | $ wstool init && |
+ | $ roscd && cd .. | ||
+ | $ catkin_make # or catkin build if this workspace has been build like that before | ||
</ | </ | ||
Line 80: | Line 82: | ||
- | ==== Step 4: Test if it worked ==== | + | ===== Step 4: Test if it worked |
Make sure you kill any old versions of JupyterLab that are running. Then: | Make sure you kill any old versions of JupyterLab that are running. Then: | ||
<code bash> | <code bash> | ||
- | $ jupyterlab | + | $ jupyter-lab |
</ | </ | ||
Line 95: | Line 97: | ||
- | ==== Troubleshooting ==== | + | ===== Troubleshooting |
=== Step 1 === | === Step 1 === | ||
Line 104: | Line 106: | ||
$ sudo -E python3 get-pip.py | $ sudo -E python3 get-pip.py | ||
</ | </ | ||
- | But maybe you should just update your Ubuntu. | + | But maybe you should just update your Ubuntu. |
- | Or maybe ask a friend | + | |
+ | If there are multiple people working on the same PC and you want to install the stuff only for yourself, you can specify that with 'pip install --user < | ||
+ | |||
+ | When the jupyter installation tells there are version requirements for certain packages you can install the specific version like this. Check the required version from your command prompt, it may be different from this. | ||
+ | <code bash> | ||
+ | # use pip3 instead if pip is for python2 | ||
+ | pip install --user traitlets==5.2.2.post1 | ||
+ | pip install --user ipython==7.23.1 | ||
+ | </ | ||
+ | That specific version of traitlets also fixes a bug with jupyter-lab. ipython can be outdated if previously installed via aptitude. | ||
=== Step 3 === | === Step 3 === |