zoukankan      html  css  js  c++  java
  • jupyter notebook 启动出错

    [C 18:49:50.816 NotebookApp] Bad config encountered during initialization:
    [C 18:49:50.816 NotebookApp] The 'contents_manager_class' trait of a NotebookApp instance must be a subclass of 'notebook.services.contents.manager.ContentsManager', but a value of class 'traitlets.traitlets.MetaHasTraits' (i.e. <class 'notedown.contentsmanager.NotedownContentsManager'>) was specified.

    http://zh.gluon.ai/chapter_crashcourse/install.html
    里面可以查找下面这段话:

    使用notedown插件来读写github源文件
    注意:这个只推荐给如果想上github提交改动的小伙伴。 我们源代码是用markdown格式来存储,而不是jupyter默认的ipynb格式。我们可以用notedown插件来读写markdown格式。下面命令下载源代码并且安装环境:

    git clone https://github.com/mli/gluon-tutorials-zh
    cd gluon-tutorials-zh
    conda env create -f environment.yml
    source activate gluon # Windows下不需要 source
    然后安装notedown,运行Jupyter并加载notedown插件:

    pip install https://github.com/mli/notedown/tarball/master
    jupyter notebook --NotebookApp.contents_manager_class=‘notedown.NotedownContentsManager’
    【可选项】默认开启notedown插件

    首先生成jupyter配置文件(如果已经生成过可以跳过)

    jupyter notebook --generate-config
    将下面这一行加入到生成的配置文件的末尾(Linux/macOS一般在~/.jupyter/jupyter_notebook_config.py)

    c.NotebookApp.contents_manager_class = ‘notedown.NotedownContentsManager’
    之后就只需要运行jupyter notebook即可。

    https://discuss.gluon.ai/t/topic/757

  • 相关阅读:
    strcspn()函数
    makfile通用版本
    C实现简单的xml格式文件
    shell编程题(七)
    C语言实现五子棋
    打字软件(最终版本)
    TypeWriting
    KMP 串的模式匹配 (25分)
    C链表操作
    Ubuntu终端字体
  • 原文地址:https://www.cnblogs.com/ya-cpp/p/9084527.html
Copyright © 2011-2022 走看看