简体   繁体   English

在Windows的virtualenv上创建安装的jupyter qtconsole快捷方式[7]

[英]Create jupyter qtconsole shortcut installed on virtualenv on windows [7]

This is how I am currently doing and is working fine . 这就是我目前的工作方式,并且工作正常

C:\Users\me> dev\Scripts\activate
(dev) C:\Users\me> jupyter qtconsole --style monokai

I tried saving the above commands to .bat and double clicking the same. 我尝试将上述命令保存到.bat并双击相同的命令。 The prompt opens and close. 提示打开并关闭。

I even tried. 我什至试过了

C:\Users\me\dev\Scripts\jupyter.exe qtconsole --style monokai

>Error executing Jupyter command 'qtconsole': [Errno 'jupyter-qtconsole' not found] 2

cmd /k C:\\Users\\me\\dev\\Scripts\\activate && jupyter qtconsole --style monokai only activates virtualenv. cmd / k C:\\ Users \\ me \\ dev \\ Scripts \\ activate && jupyter qtconsole --style monokai仅激活virtualenv。

It fails too. 它也失败了。 Is there anything missing? 缺少什么吗?

There is jupyter-qtconsole.exe in your_env\\Scripts . your_env\\Scriptsjupyter-qtconsole.exe You can create new shortcut giving that path with optional arguments. 您可以创建新的快捷方式,并提供带有可选参数的路径。

In my case, I right clicked on where I wanted shortcut, selected New>Shortcut and in the dialogue box that appeared in the target put C:\\Users\\me\\dev\\Scripts\\jupyter-qtconsole.exe --style monokai saved it and voila. 就我而言,我右键单击想要快捷方式的位置,选择“ New>Shortcut然后在出现在目标中的对话框中,将C:\\Users\\me\\dev\\Scripts\\jupyter-qtconsole.exe --style monokai保存了它。和瞧。

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

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