简体   繁体   English

Anaconda ipython qtconsole启动器

[英]Anaconda ipython qtconsole launcher

I am using Kubuntu 16.04 with kde 5.6.4. 我正在使用kde 5.6.4的Kubuntu 16.04。 I have installed anaconda python 3.5 which includes ipython qtconsole . 我已经安装了包含ipython qtconsole的 anaconda python 3.5。

To launch ipython qtconsole, I have to type ipython qtconsole in terminal. 要启动ipython qtconsole,我必须在终端中键入ipython qtconsole Is there anyway I can create a launcher for it? 无论如何,我可以为此创建启动器吗?

I know there a package, but it doesn't link to the anaconda python 3.5 and I don't want another separate python 3.5. 我知道有一个程序包,但是它不链接到anaconda python 3.5,并且我不想要另一个单独的python 3.5。

abhishek ~ $ apt-cache search ipython3-qtconsole
ipython3 - enhanced interactive Python 3 shell
ipython3-qtconsole - enhanced interactive Python 3 shell - Qt console

Try creating a Desktop file , with an absolute path to the required ipython , such as: 尝试创建一个Desktop文件 ,该文件具有所需ipython的绝对路径,例如:

[Desktop Entry]
Type=Application
Exec=/anaconda/bin/ipython qtconsole %u
Name=Jupyter Console
GenericName=Qt Application
Comment=Run a new IPython QT Console
Categories=Qt;KDE;
# MimeType=application/x-your-mime-type;
# Icon=some-icon
# X-DocPath=yourapp/index.html
# Terminal=false

Save this text file in ~/.local/share/applications/ipython_qtconsole.desktop , and then drag the .desktop file into your launcher. 将此文本文件保存在~/.local/share/applications/ipython_qtconsole.desktop ,然后将.desktop文件拖到启动器中。

I am only guessing the location of your ipython is /anaconda/bin/ipython ; 我只是猜测您的ipython的位置是/anaconda/bin/ipython ; to determine the correct path, run which ipython in terminal. 要确定正确的路径, which ipython在终端中运行which ipython

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM