本机电脑 win10

已安装python3.5

1.    直接在命令行运行 pip install ipython[all] 安装 ipython

安装完成后

在命令行输入 jupyter notebook 即可看到浏览器中的ipython notebook 界面

2. 然后在sunlime3的preferences < key building<中的user 编辑界面中设置了ipython shell的快捷键

{

"keys": ["f6"],

"caption": "SublimeREPL: Python - IPython",

"command": "run_existing_window_command","args":

{"id": "repl_python_ipython",

"file":"config/python/Main.sublime-menu"}

}

保存后。按F6,出现类似如下报错:IPython 4.0

>C:\Anaconda\lib\site-packages\IPython\config.py:13: ShimWarning:

The`IPython.config` package has been deprecated. You should import from

traitlets.config instead.

"You should import from traitlets.config instead.", ShimWarning)

C:\Anaconda\lib\site-packages\IPython\terminal\console.py:13: ShimWarning:

The `IPython.terminal.console` package has been deprecated. You should

import from jupyter_console instead.

"You should import from jupyter_console instead.", ShimWarning)

C:\Anaconda\lib\site-packages\IPython\frontend.py:21: ShimWarning: The top-

level `frontend` package has been deprecated. All its subpackages have been

moved to the top `IPython` level.

"All its subpackages have been moved to the top `IPython` level.",

ShimWarning)...

于是根据stackoverflow

https://stackoverflow.com/questions/32719352/ipython-4-shell-does-not-work-with-sublime-repl上的步骤

及链接

https://gist.githubusercontent.com/MattDMo/6cb1dfbe8a124e1ca5af/raw/a511e86dde7b3a70bdbd63b7ac3c98c32cd74277/ipy_repl.py

3.  安装jupyter  pip install -U ipython jupyter

4. 更改文件C:...\Sublime Text 3\Packages\SublimeREPL\config\Python\ipy_repl.py中的代码,保存后,按F6.

又出现了类似如下报错:

于是按照https://www.zhihu.com/question/54388483中的步骤将

5. C:...\Sublime Text 3\Packages\SublimeREPL\config\Python\Main.sublime-menu中的代码部分做了修改

修改其中id为“repl_python_ipython”的配置项,将"windows"项由

"windows":["python", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"]

改为你的ipython程序路径,具体如下:

"windows": ["C:.../Python/Python35/Scripts/ipython.exe"]

如此保存后,再按F6,就成功在sublime中调出ipython的shell了

ipython与sublime调用其shell出现的问题的更多相关文章

  1. java 调用bash shell脚本阻塞的小问题的解决

    java  调用bash shell脚本阻塞的小问题的解决 背景 使用java实现的web端,web端相应用户的界面操作,使用java调用bash实现的shell脚本进行实际的操作,操作完成返回执行结 ...

  2. 用ruby调用执行shell命令

    碰到需要调用操作系统shell命令的时候,Ruby为我们提供了六种完成任务的方法: 1.Exec方法:     Kernel#exec方法通过调用指定的命令取代当前进程:   例子:       $ ...

  3. 【原】Java程序调用远程Shell脚本

    此程序的目的是执行远程机器上的Shell脚本. [环境参数]远程机器IP:192.168.234.123用户名:root密码:rootShell脚本的路径:/home/IFileGenTool/Bak ...

  4. Shell中要如何调用别的shell脚本,或别的脚本中的变量,函数

    在Shell中要如何调用别的shell脚本,或别的脚本中的变量,函数呢? 方法一:   . ./subscript.sh 方法二:   source ./subscript.sh 注意: 1.两个点之 ...

  5. C#调用Power Shell 管理Office365 执行脚本时遇到的问题

    Power Shell管理Office参考http://www.mamicode.com/info-detail-494553.html C#调用Power Shell 参考 https://www. ...

  6. shell 调用其他shell脚本中的变量、函数

    在Shell中要如何调用别的shell脚本,或别的脚本中的变量,函数呢? 方法一:   . ./subscript.sh  (两个点之间,有空格) 方法二:   source ./subscript. ...

  7. 举例讲解Linux系统下Python调用系统Shell的方法

    有时候难免需要直接调用Shell命令来完成一些比较简单的操作,比如mount一个文件系统之类的.那么我们使用Python如何调用Linux的Shell命令?下面来介绍几种常用的方法:1. os 模块 ...

  8. 关于java调用linux shell 的问题

    问题的提出: shell脚本要做离线的数据处理任务 java调用脚本,将这种处理任务封装成webservice 特点: shell处理单个时间长 每次要处理文件量大 这里目前只做调用分析: 原来的: ...

  9. ipython, 一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell 命令,内置了许多很有用的功能和函数

    一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell 命令,内置了许多很有用的功能和函数. 若用的是fish s ...

随机推荐

  1. com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'Öйú±ê׼ʱ¼

    起初这样能短暂解决问题,后来发现每次机器重启了就还是有这样的错误,还是要执行SQL,很麻烦: show variables like '%time_zone%'; select now(); set ...

  2. Wireshark无法解析OpenFlow配置协议 解决方法

    在使用wireshark对OpenFlow交换机与FlowVisor的通信过程进行抓包分析的时候,在其选项中有openflow_v1选项,但Wireshark竟无法解析OpenFlow协议. 在查阅相 ...

  3. zepto点透解决思路

    首先看几个链接, http://blog.youyo.name/archives/zepto-tap-click-through-research.html youyo的分析 http://softw ...

  4. hdu 5381 The sum of gcd 莫队+预处理

    The sum of gcd Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) P ...

  5. Ubuntu 关闭防火墙

    关闭防火墙:service iptables stop

  6. Jmeter 4.0 扩展插件

    今天发现Jmeter4.0 也可以安装插件 而且比之前的版本的安装方法更为容易 https://jmeter-plugins.org/ https://jmeter-plugins.org/insta ...

  7. RabbitMQ入门_13_消息持久化

    参考资料:https://www.rabbitmq.com/tutorials/tutorial-two-java.html 默认情况下,队列中的消息是不持久化的.如果 RabbitMQ 崩溃,队列中 ...

  8. Idea设置默认不折叠一行的函数

  9. Python -- Scrapy 架构概览

    架构概览 本文档介绍了Scrapy架构及其组件之间的交互. 概述 接下来的图表展现了Scrapy的架构,包括组件及在系统中发生的数据流的概览(绿色箭头所示). 下面对每个组件都做了简单介绍,并给出了详 ...

  10. elementUI和iview兼容么

    听说iview的作者居然是91年的,我要赶快加油了. https://zhuanlan.zhihu.com/p/25739512