1.通過如下命令進行安裝
brew install jupyter
如果mac電腦已安裝Python3可以通過如下命令來進行安裝
python3 -m pip install --upgrade pip
python3 -m pip install jupyter
如果mac電腦已安裝Python2可以通過如下命令來進行安裝
python -m pip install --upgrade pip
python -m pip install jupyter
2.啓動jupyter
jupyter notebook
3.瀏覽器訪問
localhost:8888
4.自定義端口號
jupyter notebook --port 9999