@@ -22,39 +22,23 @@ cmake <choreonoid_dir> -DADDITIONAL_EXT_DIRECTORIES=<jupyter_plugin_dir>
2222
2323## Install XEUS
2424
25- XEUS https://github.com/jupyter-xeus/xeus
25+ See https://github.com/IRSL-tut/irsl_docker_xeus/blob/main/local_build5.sh
26+
27+
28+ ## Install jupyter by pip
2629
2730``` bash
28- export OUTPUT_DIR=/opt/xeus
29-
30- apt install -q -qq -y wget libssl-dev openssl cmake g++ pkg-config git uuid-dev libsodium-dev
31-
32- # # json
33- (mkdir json && wget https://github.com/nlohmann/json/archive/refs/tags/v3.11.2.tar.gz --quiet -O - | tar zxf - --strip-components 1 -C json)
34- (cd json; cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${OUTPUT_DIR} . ; make install -j$( nproc) )
35- # # xtl
36- (mkdir xtl && wget https://github.com/xtensor-stack/xtl/archive/refs/tags/0.7.5.tar.gz --quiet -O - | tar zxf - --strip-components 1 -C xtl)
37- (cd xtl; cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${OUTPUT_DIR} . ; make install -j$( nproc) )
38- # # xeus / 3.0.5
39- (mkdir xeus && wget https://github.com/jupyter-xeus/xeus/archive/refs/tags/3.1.1.tar.gz --quiet -O - | tar zxf - --strip-components 1 -C xeus)
40- (cd xeus; cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${OUTPUT_DIR} . ; make install -j$( nproc) )
41-
42- # ## xeus-zmq
43- # # libzmq
44- (mkdir libzmq && wget https://github.com/zeromq/libzmq/archive/refs/tags/v4.3.4.tar.gz --quiet -O - | tar zxf - --strip-components 1 -C libzmq)
45- (cd libzmq; mkdir build; cd build; cmake -DWITH_PERF_TOOL=OFF -DZMQ_BUILD_TESTS=OFF -DENABLE_CPACK=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${OUTPUT_DIR} ..; make install -j$( nproc) )
46- # # cppzmq
47- (mkdir cppzmq && wget https://github.com/zeromq/cppzmq/archive/refs/tags/v4.8.1.tar.gz --quiet -O - | tar zxf - --strip-components 1 -C cppzmq)
48- (cd cppzmq; cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${OUTPUT_DIR} -DCPPZMQ_BUILD_TESTS=OFF . ; make install -j$( nproc) )
49- # # xeus-zmq
50- (mkdir -p xeus-zmq/build && wget https://github.com/jupyter-xeus/xeus-zmq/archive/refs/tags/1.1.0.tar.gz --quiet -O - | tar zxf - --strip-components 1 -C xeus-zmq)
51- (cd xeus-zmq/build; cmake -DCMAKE_PREFIX_PATH=${OUTPUT_DIR} -DCMAKE_INSTALL_PREFIX=${OUTPUT_DIR} -DCMAKE_BUILD_TYPE=Release ..; make install -j$( nproc) )
52-
53- export PATH=$PATH :/opt/xeus/lib
54- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :/opt/xeus/lib
31+ apt-get install -y python3-pip
32+ python3 -m pip install --upgrade pip
33+ python3 -m pip install --break-system-packages -r requirements.txt
5534```
5635
57- ## Install jupyter by deb
36+ Installing to /usr/local
37+ ``` bash
38+ sudo python3 -m pip install --break-system-packages -r requirements.txt
39+ ```
40+
41+ ## Install jupyter by deb(not recommended)
5842
5943### IPython
6044
@@ -71,26 +55,10 @@ python3 -m pip install jupyterlab
7155python3 -m pip install jupyter-console
7256
7357
74- ## Install jupyter by pip
75-
76- ``` bash
77- apt-get install -y python3-pip
78- python3 -m pip install --upgrade pip
79- python3 -m pip install ipython
80- python3 -m pip install jedi
81- python3 -m pip install jupyterlab
82- python3 -m pip install jupyter-console
83- ```
84-
85- Installing to /usr/local
86- ``` bash
87- sudo python3 -m pip install -r requirements.txt
88- ```
89-
9058## RUN through jupyer
9159
9260``` bash
93- export JUPYTER_PATH={path/to/install/choreonoid}/share/choreonoid-2.0 /jupyter
61+ export JUPYTER_PATH={path/to/install/choreonoid}/share/choreonoid-{cnoid-version} /jupyter
9462```
9563
9664### Default (browser will be launched)
0 commit comments