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

相关推荐
M-finder3 天前
Mac菜单栏综合工具FancyTool更新啦
mac·swift
Yisitelz5 天前
签名、杂凑、MAC、HMAC
mac·密码·数据完整性·密评
2501_927539306 天前
PDF Reader 编辑阅读(Mac)
pdf·mac·pdf reader
夏小花花6 天前
Mac m系列芯片向日葵打不开 解决方案
macos·mac
小溪彼岸10 天前
一款好用的桌面端软件uTools
mac
猫头虎12 天前
IDE mac M芯片安装报错:如何解决“InsCode.app 已损坏”,无法打开
ide·vscode·macos·inscode·编辑器·idea·mac
2501_9280946512 天前
PDF Reader 编辑阅读工具(Mac中文)
macos·pdf·mac
赵榕13 天前
HyperDock不显示预览图的解决方法
macos·mac·hyperdock
你单排吧14 天前
Uniapp之ios真机调试篇
前端·mac
77xxx18 天前
mac在iTerm2中安装zsh
mac·命令行