TAB完成在Jupyter Notebook中不起作用,但在iPython终端中很好 [英] TAB completion does not work in Jupyter Notebook but fine in iPython terminal

查看:1347
本文介绍了TAB完成在Jupyter Notebook中不起作用,但在iPython终端中很好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TAB完成在iPython终端中工作正常,但在Firefox浏览器中却不能.

TAB completion works fine in iPython terminal, but not in Firefox browser.

到目前为止,我已经尝试过但失败了,

So far I had tried but failed,

1).运行命令$ sudo easy_install readline

然后将.egg文件写入/usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg,

then the .egg file was wrote in /usr/local/lib/python2.7/dist-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg,

但是TAB完成在Jupyter Notebook中仍然不起作用.

but TAB completion still doesn't work in Jupyter Notebook.

2).也尝试找到ipython_notebook_config.py or ipython_config.py的位置,但失败了.

2). also tried to find locate the ipython_notebook_config.py or ipython_config.py, but failed.

我使用Python 3.5和iPython 4.0.0.并且都安装在Ubuntu 15.10 /usr/share/anaconda3/bin/ipython中.

I use Python 3.5 and iPython 4.0.0. and both are installed in Ubuntu 15.10 /usr/share/anaconda3/bin/ipython.

任何帮助将不胜感激!

推荐答案

我的问题是我尝试调用自动完成并在同一单元格中导入. 由于导入的内容尚未初始化,因此自动完成功能不起作用.

My problem was in that I try to call autocomplete and import in the same cell. Because of imported thing does not initialized yet, autocomplete does not work.

我需要的是在新单元格中调用该对象

All I need is call to the object in a new cell

UPD:或者只需在同一单元中运行一次程序即可初始化导入

UPD: or just run program once in the same cell to initialize imported

这篇关于TAB完成在Jupyter Notebook中不起作用,但在iPython终端中很好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆