美文网首页
配置jupyter同一个cell输出多行

配置jupyter同一个cell输出多行

作者: Jasmine晴天和我 | 来源:发表于2019-04-10 10:48 被阅读0次

    首先找到你的.ipython文件夹下的\profile_default文件夹,打开,按住shift并点击鼠标右键,在此处打开命令行,然后输入:

    ipython profile create
    

    此时该文件夹下多出两个配置文件
    ipython_config.py:打开任意ipython kernel时都会运行

    ipython_notebook_config.py:打开notebook时会运行
    

    打开ipython_config.py,在任意位置添加下面几句:

    c = get_config()
    # Run all nodes interactively
    c.InteractiveShell.ast_node_interactivity = "all"
    

    重启jupyter可以使用了

    相关文章

      网友评论

          本文标题:配置jupyter同一个cell输出多行

          本文链接:https://www.haomeiwen.com/subject/iaagiqtx.html