通过修改“start in"来更改 Jupyter Notebook 启动文件夹不再工作 [英] Changing Jupyter Notebook start up folder by modifying "start in" not working any more

查看:81
本文介绍了通过修改“start in"来更改 Jupyter Notebook 启动文件夹不再工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经能够通过修改 Windows 上笔记本启动图标属性的开始于"选项来更改 Jupyter 的默认启动文件夹(Jupyter 首次启动时在浏览器中显示的文件夹),如所述此处此处.

I used to be able to change the default start up folder for Jupyter (the folder Jupyter displays in browser when it was first started) by modifying the "start in" option of the Notebook launch icon's properties on Windows, as described here and here.

但是,在我最近安装 Anaconda 3 后,这不再起作用.即使我将开始于"文件夹更改为我希望的文件夹,默认情况下浏览器仍会转到文档"文件夹.我尝试以管理员身份执行此操作,但仍然无效.有什么建议?谢谢!

However, this is not working any more after I recently installed Anaconda 3. Even though I changed the "start in" folder to the folder I wish, the browser still goes to "Documents" folder by default. I tried doing this as admin, still didn't work. Any suggestions? Thanks!

推荐答案

虽然仍未找到永久性修复,但我确实有以下解决方案,效果很好!

Although a permanent fix is still not found, I do have the following workaround that works great!

使用这里描述的方式,更改Anaconda提示符的启动目录,然后启动它并确保默认文件夹是你想要的,然后输入jupyter notebook".那里!笔记本应该会在您想要的文件夹中启动.

Using the way described here, change the start up dir for Anaconda prompt, then launch it and make sure the default folder is the one you want, and type "jupyter notebook". There! The notebook should launch in your desired folder.

更新:您也可以直接启动 Anaconda Prompt,然后使用 cd C:\Users\Name\Folder 导航到您的 iPython notebook 文件所在的文件夹,然后使用 jupyter notebookjupyter notebook myfile.ipynb 开始工作!

UPDATE: You can also directly launch Anaconda Prompt, then use cd C:\Users\Name\Folder to navigate into the folder where your iPython notebook files are located, and then use jupyter notebook or jupyter notebook myfile.ipynb to start working!

这篇关于通过修改“start in"来更改 Jupyter Notebook 启动文件夹不再工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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