简体   繁体   English

Jupyter notebook 从快捷方式启动

[英]Jupyter notebook launch from shortcut

i was using Anacondas, but decided to switch to miniconda3 package (for weight reduction) so i installed miniconda3 package, and later jupyter notebook.我正在使用 Anacondas,但决定切换到 miniconda3 package(为了减轻重量)所以我安装了 miniconda3 package,后来安装了 jupyter 笔记本。 the problem is: i need everytime run "Anaconda Prompt (miniconda3)" with "jupyter notebook" to start notebook.问题是:我每次都需要使用“jupyter notebook”运行“Anaconda Prompt (miniconda3)”来启动笔记本。

Is there any way to launch Jupyter Notebook with shortcut, same (or similar) to Anacondas distro?有什么方法可以使用与 Anacondas 发行版相同(或相似)的快捷方式启动 Jupyter Notebook?

Ps i am on windows OS Ps 我在 windows 操作系统上

For Windows, you can create a shortcut pointing to the following path:对于 Windows,您可以创建指向以下路径的快捷方式:

%PY_HOME%\python.exe %PY_HOME%\cwp.py %PY_HOME% %PY_HOME%\python.exe -m jupyter notebook

Where %PY_HOME% is my environment variable pointing to the Anaconda folder (example: C:\Users\myuser\AppData\Local\Continuum\anaconda3 ).其中%PY_HOME%是指向 Anaconda 文件夹的环境变量(例如: C:\Users\myuser\AppData\Local\Continuum\anaconda3 )。 It's useful to use the environment variable because you may run out of characters.使用环境变量很有用,因为您可能会用完字符。

If you want to run a especific environment:如果要运行特定环境:

%PY_HOME%\python.exe %PY_HOME%\cwp.py %PY_HOME%\envs\myenvironment %PY_HOME%\envs\myenvironment\python.exe -m jupyter notebook

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

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