mac上修改jupyterlab工作目录

mac上使用anaconda中的jupyterlab。

修改默认的工作目录

复制代码
upyter lab --generate-config
Writing default config to: /Users/xxx/.jupyter/jupyter_lab_config.py
vim /Users/xiece/.jupyter/jupyter_lab_config.py
# 设置c.ServerApp.notebook_dir
c.ServerApp.notebook_dir= '/Users/xxx/jupyternotes'

修改后重启anaconda再重启juypterlab工作目录也还是没改,命令行直接运行jupyte lab,发现报错是因为没有找到文件夹/Users/xxx/jupyternotes,

建好目录以后,重启jupyter lab,发现工作目录设置成功,日志如下:

复制代码
[I 2024-07-03 21:32:20.497 ServerApp] notebooks 运行所在的本地路径: /Users/xxx/jupyternotes

注意给文件夹授权

chmod 777 /Users/xxx/jupyternotes/

然后运行:

sudo jupyter notebook --allow-root

相关推荐
用户0958267572794 天前
前端工程师第一次mac系统安装mysql实践手册
mac
2501_9275393014 天前
Final Cut Pro X fcpx音视频剪辑编辑(Mac中文)
macos·fcpx·mac·视频剪辑
悄然林静23 天前
Mac终端执行`brew doctor`报`openssl@1.1`警告
mac·xcode·apple
M-finder1 个月前
Mac菜单栏综合工具FancyTool更新啦
mac·swift
Yisitelz1 个月前
签名、杂凑、MAC、HMAC
mac·密码·数据完整性·密评
2501_927539301 个月前
PDF Reader 编辑阅读(Mac)
pdf·mac·pdf reader
夏小花花1 个月前
Mac m系列芯片向日葵打不开 解决方案
macos·mac
小溪彼岸1 个月前
一款好用的桌面端软件uTools
mac
猫头虎1 个月前
IDE mac M芯片安装报错:如何解决“InsCode.app 已损坏”,无法打开
ide·vscode·macos·inscode·编辑器·idea·mac
2501_928094651 个月前
PDF Reader 编辑阅读工具(Mac中文)
macos·pdf·mac