Created
October 28, 2021 14:23
-
-
Save blockspacer/46c769a3f575c5dec018c50deb39d5e4 to your computer and use it in GitHub Desktop.
install cling jupyter kernel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see https://blog.jupyter.org/interactive-workflows-for-c-with-jupyter-fe9b54227d92 | |
# tested with python 3.8 | |
git config --global http.sslCAInfo /etc/ssl/certs/ca-certificates.crt | |
pip install jupyter | |
# read: | |
# https://unix.stackexchange.com/a/442517 | |
# https://github.com/conda/conda/issues/10431 | |
sudo dpkg-reconfigure dash | |
file /bin/sh # /bin/sh must be symbolic link to bash | |
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh | |
sh Miniconda3-py38_4.10.3-Linux-x86_64.sh | |
cat >> ~/.condarc << EOF | |
auto_activate_base: false | |
proxy_servers: | |
http: 127.0.0.1:8088 | |
https: 127.0.0.1:8088 | |
ssl_verify: /etc/ssl/certs/ca-certificates.crt | |
EOF | |
conda config --set auto_activate_base false | |
conda update conda -y | |
conda install -y ipython jupyter | |
conda install nb_conda -c conda-forge | |
pip3 install jupyterlab | |
jupyter serverextension enable --py jupyterlab | |
# jupyter lab --no-browser # command starts JupyterLab | |
pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master | |
jupyter contrib nbextension install --user | |
# make virtual environment and activate | |
conda create -n xeus-cling | |
conda activate xeus-cling | |
# install xeus-cling package | |
wget https://conda.anaconda.org/conda-forge/noarch/notebook-6.4.5-pyha770c72_0.tar.bz2 | |
conda install --offline notebook-6.4.5-pyha770c72_0.tar.bz2 | |
conda config --prepend channels \ | |
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free | |
conda config --prepend channels \ | |
https://public.dhe.ibm.com/ibmdl/export/pub/software/server/ibm-ai/conda/ | |
conda config --prepend channels \ | |
https://opence.mit.edu | |
# conda install cling -c conda-forge/label/gcc7 | |
conda install xeus-cling notebook -c conda-forge/label/gcc7 | |
# Read https://xeus-cling.readthedocs.io/en/latest/installation.html#installing-the-kernel-spec | |
find $HOME/miniconda3/ -name xcpp11 | |
jupyter kernelspec install $HOME/miniconda3/pkgs/xeus-cling-0.13.0-h560cc44_1/share/jupyter/kernels/xcpp11 --user | |
jupyter kernelspec install $HOME/miniconda3/pkgs/xeus-cling-0.13.0-h560cc44_1/share/jupyter/kernels/xcpp14 --user | |
jupyter kernelspec install $HOME/miniconda3/pkgs/xeus-cling-0.13.0-h560cc44_1/share/jupyter/kernels/xcpp17 --user | |
jupyter kernelspec list | |
jupyter lab --no-browser # command starts JupyterLab | |
# Read https://learnopencv.com/xeus-cling-run-c-code-in-jupyter-notebook/ | |
# The notebook server will start running on your localhost. Next, create a new Jupyter Notebook and select C++11 kernel. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ru_winxp_pro_with_sp3_vl.iso