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

相关推荐

  1. mac修改jupyterlab工作目录

    2024-07-10 22:16:03       10 阅读
  2. docker修改工作目录

    2024-07-10 22:16:03       36 阅读
  3. mac挂载linux目录

    2024-07-10 22:16:03       9 阅读
  4. mac查看以及修改DNS配置

    2024-07-10 22:16:03       25 阅读
  5. mac修改git的密码

    2024-07-10 22:16:03       17 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-10 22:16:03       5 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-10 22:16:03       5 阅读
  3. 在Django里面运行非项目文件

    2024-07-10 22:16:03       4 阅读
  4. Python语言-面向对象

    2024-07-10 22:16:03       7 阅读

热门阅读

  1. mongoexport导出聚合查询的mongo数据

    2024-07-10 22:16:03       8 阅读
  2. k8s离线安装单节点elasticsearch7.x

    2024-07-10 22:16:03       10 阅读
  3. d3tree树控件,点击动态加载,默认展开三层

    2024-07-10 22:16:03       10 阅读
  4. ontape备份异机还原的样例

    2024-07-10 22:16:03       9 阅读
  5. [PaddlePaddle飞桨] PaddleSpeech语言小模型部署

    2024-07-10 22:16:03       9 阅读
  6. vivado DQS_BIAS

    2024-07-10 22:16:03       12 阅读
  7. PHP框架详解-symfony框架

    2024-07-10 22:16:03       12 阅读
  8. 深入理解UTF-8 Encoding在C#中的应用与异常处理

    2024-07-10 22:16:03       11 阅读
  9. Linux 常用命令 - mkdir【创建新目录】

    2024-07-10 22:16:03       11 阅读