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 ...
随机推荐
- boot sector FAT
- Adobe Reader 2019 Offline Installer, Free Download - Best PDF Reader
https://ridnt-b.blogspot.com/2018/01/adobe-reader-2018-free-download.html http://ardownload.adobe.co ...
- Hive创建内部表、外部表
使用hive需要hive环境 启动Hive 进入HIVE_HOME/bin,启动hive ./hive 内部表 建表 hive> create table fz > (id int,nam ...
- 03_Flume多节点Failover实践
1.实践场景 模拟上游Flume Agent在发送event时的故障切换 (failover) 1)初始:上游Agent向active的下游节点Collector1传递event 2)Collecto ...
- HDU 5877 Weak Pair(树状数组+dfs+离散化)
http://acm.hdu.edu.cn/showproblem.php?pid=5877 题意: 给出一棵树,每个顶点都有权值,现在要你找出满足要求的点对(u,v)数,u是v的祖先并且a[u]*a ...
- 警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
加入 import os os.environ[' demo: import os os.environ[' import tensorflow as tf tf.enable_eager_execu ...
- ubuntu14.04, keyboard shortcuts
- python 元组列表转为字典
#create a list l = [(), (), (), (), (), ()] d = {} for a, b in l: d.setdefault(a, []).append(b) prin ...
- jquery作业 教授答案
http://www.cnblogs.com/qianjinyan/p/8961086.html 题目要求: 1. 通过jquery动态的创建一个表格,随机生成(id自增,name随机2-3个中文汉字 ...
- Jmeter性能测试之一 性能测试的流程和步骤介绍
Step1: 知道在架构上,你要做的性能测试要cover几个部分,如下图,性能测试从用户角度,PC端之后都要要考虑进行的,例如网络,app server,Database等等 N1+N2+N3+N4 ...