Jupyter

Jupyter #

pipenv install jupyterlab

alias python-jupyter="/Users/yewang/.local/share/virtualenvs/yewang-jvfc4aCO/bin/python"
alias jupyter="python-jupyter -m jupyter"
alias jlab="jupyter lab"
alias jlist="jupyter kernelspec list"

参考:

配置 #

# vi ~/.jupyter/jupyter_notebook_config.py
# 绝对路径
c.NotebookApp.notebook_dir = '/Users/yewang/note/kingye/jupyter'

Jupyter Notebook vs Jupyter Lab #

  • Jupyter Lab is a next-generation web-based user interface for Project Jupyter
  • Jupyter Notebook Interface is a Web-based application for authoring documents that combine live-code with narrative text, equations and visualizations.
    • Jupyter Notebook 原名 IPython Notebook (version 3 or earlier)

Jupyter kernel #

jupyter kernelspec list

jupyter kernelspec uninstall

参考:

Go #

gopherdata/gophernotes

Github stars #

go get -u github.com/gopherdata/gophernotes
mkdir -p ~/Library/Jupyter/kernels/gophernotes
# cp $GOPATH/src/github.com/gopherdata/gophernotes/kernel/* ~/Library/Jupyter/kernels/gophernotes
cp /Users/yewang/.gvm/pkgsets/go1.15.10/global/pkg/mod/github.com/gopherdata/gophernotes@v0.7.2/kernel/* ~/Library/Jupyter/kernels/gophernotes

Java #

SpencerPark/IJava

Github stars #

A Jupyter kernel for executing Java code.


PHP #

Litipk/Jupyter-PHP

Github stars #

  • 先安装 zmq
    • 查看扩展是否存在:php74 -m | grep zmq
    • 不存在就需要安装 Litipk/Jupyter-PHP Github stars Language Last Tag Last commit
      git clone git://github.com/mkoppanen/php-zmq.git
      cd php-zmq
      phpize74 && configure74
      make && make install
      
      • 修改 php.ini,添加 extension=zmq
        • php -ini 查看 php.ini 文件位置
  • phpto74
  • php jupyter-php-installer.phar install -vvv
    • 使用 -vvv 查看详细信息

Python #

IPython #


编辑器 #

nteract/nteract

Github stars #

The interactive computing suite for you!


本文访问量

本站总访问量

本站总访客数