Ipython notebook will not start on command line

后端 未结 6 1709
伪装坚强ぢ
伪装坚强ぢ 2021-01-02 22:02

I tried to open ipython in terminal with ipython notebook and it will not open ipython notebook. It gives the following error:

| ~/documents/ud         


        
6条回答
  •  醉酒成梦
    2021-01-02 22:30

    I used the same approach as Kiem Nguyen above, but 'chrome' wouldn't work for me, even after editing my .bash_profile as Hanshenry90 suggested.

    To use Safari to view the notebook, open your terminal and enter:

    jupyter notebook --generate-config
    cd ~.jupyter
    nano jupyter_notebook_config.py
    

    ctrl + w "NotebookApp.browser" + enter to skip to that part of the file. Then delete # and change the line to:

    c.NotebookApp.browser = u'Safari'
    

    Restart your notebook, with jupyter notebook, and it should open in Safari.

    If anyone has any insight on how to make this work for Chrome, that would be much appreciated.

提交回复
热议问题