ipython与sublime调用其shell出现的问题
本机电脑 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出现的问题的更多相关文章
- java 调用bash shell脚本阻塞的小问题的解决
java 调用bash shell脚本阻塞的小问题的解决 背景 使用java实现的web端,web端相应用户的界面操作,使用java调用bash实现的shell脚本进行实际的操作,操作完成返回执行结 ...
- 用ruby调用执行shell命令
碰到需要调用操作系统shell命令的时候,Ruby为我们提供了六种完成任务的方法: 1.Exec方法: Kernel#exec方法通过调用指定的命令取代当前进程: 例子: $ ...
- 【原】Java程序调用远程Shell脚本
此程序的目的是执行远程机器上的Shell脚本. [环境参数]远程机器IP:192.168.234.123用户名:root密码:rootShell脚本的路径:/home/IFileGenTool/Bak ...
- Shell中要如何调用别的shell脚本,或别的脚本中的变量,函数
在Shell中要如何调用别的shell脚本,或别的脚本中的变量,函数呢? 方法一: . ./subscript.sh 方法二: source ./subscript.sh 注意: 1.两个点之 ...
- C#调用Power Shell 管理Office365 执行脚本时遇到的问题
Power Shell管理Office参考http://www.mamicode.com/info-detail-494553.html C#调用Power Shell 参考 https://www. ...
- shell 调用其他shell脚本中的变量、函数
在Shell中要如何调用别的shell脚本,或别的脚本中的变量,函数呢? 方法一: . ./subscript.sh (两个点之间,有空格) 方法二: source ./subscript. ...
- 举例讲解Linux系统下Python调用系统Shell的方法
有时候难免需要直接调用Shell命令来完成一些比较简单的操作,比如mount一个文件系统之类的.那么我们使用Python如何调用Linux的Shell命令?下面来介绍几种常用的方法:1. os 模块 ...
- 关于java调用linux shell 的问题
问题的提出: shell脚本要做离线的数据处理任务 java调用脚本,将这种处理任务封装成webservice 特点: shell处理单个时间长 每次要处理文件量大 这里目前只做调用分析: 原来的: ...
- ipython, 一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell 命令,内置了许多很有用的功能和函数
一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell 命令,内置了许多很有用的功能和函数. 若用的是fish s ...
随机推荐
- Linux上Java的安装与配置
由于使用 yum 或者 apt-get 命令 安装 openjdk 可能存在类库不全,从而导致用户在安装后运行相关工具时可能报错的问题,所以此处我们推荐采用手动解压安装的方式来安装 JDK.具体步骤如 ...
- 新增html5标签 例如input的很多属性
<meter> 标签定义度量衡.仅用于已知最大和最小值的度量. contenteditable="true"> 规定可编辑的内容. <output> ...
- LA 4254 处理器(二分+贪心)
https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_probl ...
- java List中相同的数据合并到一起
值好最后一天岗,写个小程序 List<Map<Object,Object>> mapList = new ArrayList<Map<Object,Object&g ...
- JavaScript页面跳转的一些实现方法
第一种 <script language=”javascript” type=”text/javascript”> window.location.href=”login.jsp?back ...
- linux 系统调用号表
位于 /usr/include/asm/unistd.h 由于我是64位系统,所以有一些额外的东西.我的这个文件为下文 #ifndef _ASM_X86_UNISTD_H #define _ASM_X ...
- VC动态调用DLL
1. //函数指针声明 typedef int (_stdcall MYDLLFUN)(char* _pcOut, /*INOUT*/int *_piOutBufLen, char* _pcIn, i ...
- JavaScript运算符与类型
1.运算符优先级 首先讲一下运算符的优先级,它决定了表达式中运算执行的先后顺序,优先级高的运算符最先被执行. 下面的表将所有运算符按照优先级的不同从高到低排列: 优先级 运算类型 关联性 运算符 19 ...
- android------锁屏(手机启动出现锁屏界面)
以前用过一个红包锁屏的软件,第一次打开手机出现锁屏,滑动领取收益,当时觉得这功能不错,就查阅资料,写了一个案例, apk运行流程: 进入软件--->启动服务--->关闭手机(可先退出应用) ...
- Axel and Marston in Bitland CodeForces - 782F (bitset优化)
题目链接 $dp[0/1][i][x][y]$表示起始边为0/1, 走$2^i$ 步, 是否能从$x$走到$y$ 则有转移方程 $dp[z][i][x][y]\mid=dp[z][i-1][x][k] ...