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

相关推荐
HashFlag10 小时前
配置快捷命令登录远程服务机器
mac
鸿乃江边鸟10 小时前
Starrocks BE 在Mac编译以及遇到的问题解决
starrocks·mac·编译
带娃的IT创业者3 天前
MLX-VLM:在Mac上解锁视觉语言模型的本地推理与微调能力
人工智能·macos·语言模型·mac·视觉语言模型·mlx·本地推理
新刘海6 天前
MacBook网络已连接却上不了网
mac
Mininglamp_271810 天前
开源端侧 AI Agent 全栈架构解析:Mano-P 模型 + Cider 推理加速 + AFK 自动构建
人工智能·架构·开源·agent·mac·apple silicon·gui agent
代码讲故事13 天前
mac电脑上docker突然无法运行,不停的出现弹框,“com.docker.vmnetd”将对你的电脑造成伤害。附国内不同芯片高速下载地址,下载直接运行。
macos·docker·容器·arm·mac·intel·下载
HashFlag22 天前
Codex配置Skill
windows·ai·mac·codex
William.csj23 天前
Mac/Zotero——切换翻译软件API的方法
mac·zotero
wangbing11251 个月前
_MACOSX目录是什么
mac
怎么没有名字注册了啊1 个月前
Apple 编年史
mac·apple