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

相关推荐
zhensherlock1 天前
Protocol Launcher 系列:App Store 精准引流与应用推广
javascript·macos·ios·typescript·iphone·mac·ipad
贝锐3 天前
打破距离限制!向日葵端口映射功能远程访问本地 Jupyter Lab
远程·端口映射·jupyter lab
jianghao20254 天前
realesrgan-gui跨平台使用指南:Win/Mac/Linux全支持
linux·windows·mac·跨平台软件·realesrgan-gui
电饭叔12 天前
利用ip地址帮助macbook系统连接带有wifi功能的epson电脑
电脑·mac·macbook·mac book添加打印机
雨洛lhw12 天前
基于 FPGA 的主机 IP 自动配置方案设计
udp·mac·ip·fpga·dhcp
pe7er23 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
*.✧屠苏隐遥(ノ◕ヮ◕)ノ*.✧1 个月前
JSP, MVC, El, JSTL, MAC
java·开发语言·mvc·mac·jsp
独泪了无痕1 个月前
Mac Homebrew 安装 MySQL 指南
数据库·mysql·mac
chrisleequeen1 个月前
【无标题】
conda·mac·anaconda·环境变量·export·no found
张泽泽zzz1 个月前
使用VPN后 Mac出现能联网但无法访问网页的问题 <已解决>
mac