Jupyter

1
2
3
# 安装
pip install jupyterlab

1. 参考文档

  1. Installing the Jupyter Software
  2. Jupyter kernels

https://github.com/conda-forge/miniforge

2. kernel

2.1. IJulia

1
2
3
add IJulia
using IJulia
notebook()

https://github.com/JuliaLang/IJulia.jl

2.2. C

1
pip install jupyter-cpp-kernel

https://github.com/shiroinekotfs/jupyter-cpp-kernel

2.3. IR

1
2
3
install.packages('IRkernel')
IRkernel::installspec(user = FALSE)
jupyter labextension install @techrah/text-shortcuts

2.4. dot-kernel

1
2
pip install dot_kernel
install-dot-kernel

https://github.com/laixintao/jupyter-dot-kernel

2.5. octave

1
pip install octave-kernel

https://github.com/calysto/octave_kernel

2.6. kotlin-jupyter

1
pip install kotlin-jupyter-kernel

https://github.com/Kotlin/kotlin-

2.7. java

1
java -jar ganymede-2.1.2.20230910.jar -i

https://github.com/allen-ball/ganymede

2.8. other

https://github.com/jupyter/jupyter/wiki/Jupyter-kernels

3. 设置默认起始目录

  1. 使用 shell 打开配置文件
1
2
3
4
# 获取默认配置文件路径,有配置的同学请按 N。
jupyter notebook --generate-config
# vim 编辑配置文件,Windows下没有也可以用 start。
vim ~/.jupyter/jupyter_notebook_config.py
  1. 取消c.NotebookApp.notebook_dir注释,即删除行前#符号
  2. 将要设置的默认起始目录填入后面的引号之中。