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

相关推荐
Mysticbinary8 天前
消息验证码(MAC)的介绍
mac·hmac·认证加密
程序员老周66610 天前
mac下载homebrew 安装和使用git
git·mac·homebrew·ssh密匙·windows转mac·mac配brew环境变量
wsdhla11 天前
如何在Windows上实现MacOS中的open命令
mac·cmd·open
fen_fen13 天前
机器学习:在虚拟环境中使用 Jupyter Lab
机器学习·jupyter·jupyter lab
布尼卡18 天前
mac brew 无法找到php7.2 如何安装php7.2
php·mac
Andy32221 天前
030 期 3个神器让你的Mac更聪明!
ios·github·mac
HiF22 天前
新的生产力工具——MacBook Pro
mac
Nu1122 天前
解决 mbp14/16 的 miniled 屏幕刺眼发黄问题
操作系统·mac
1101023 天前
AppKit(一):NSAppliaction类
mac
差不多程序员23 天前
工作纪实_63-Mac电脑使用brew安装软件
kafka·mac·brew