权限被拒绝:Untitled.ipynb Windows 10 AWS Workspaces [英] Permission denied: Untitled.ipynb Windows 10 AWS Workspaces

查看:726
本文介绍了权限被拒绝:Untitled.ipynb Windows 10 AWS Workspaces的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在Windows 10的AWS工作区中安装了anaconda Python 2.7,并从anaconda命令提示符下启动Jupyter Notebook.当我尝试创建一个新的笔记本时,出现错误: [我20:20:23.697 NotebookApp]在中创建新的笔记本 [W 20:20:23.795 NotebookApp] 403 POST/api/contents(:: 1):权限被拒绝:Untitled.ipynb [W 20:20:23.796 NotebookApp]权限被拒绝:Untitled.ipynb

I have installed anaconda Python 2.7 on my AWS workspace with Windows 10 and I launch Jupyter Notebook from the anaconda command prompt. When I try to create a new notebook, I have an error: [I 20:20:23.697 NotebookApp] Creating new notebook in [W 20:20:23.795 NotebookApp] 403 POST /api/contents (::1): Permission denied: Untitled.ipynb [W 20:20:23.796 NotebookApp] Permission denied: Untitled.ipynb

能请你帮忙吗?我试图寻找一种解决方案,但不清楚Windows 10需要做什么.

Could you please help? I have tried to look for a solution but it is not clear what needs to be done for Windows 10.

推荐答案

我没有使用AWS,但这可能会有所帮助:

I'm not using AWS, but maybe this can help:

我启动时

jupyter notebook

从anaconda命令提示符下启动该命令提示符窗口中的日志的第一行时,

表示:

from the anaconda command prompt, while starting up one of the first lines in the log in that command prompt window said:

[I <some timestamp> NotebookApp] Serving notebooks from local directory: C:\

不幸的是,我没有写入C:\目录的权限.

Unfortunately, I don't have permissions to write into the C:\ directory.

所以我生成了一个配置文件

So I generated a configuration file

jupyter notebook --generate-config

最终以 jupyter_notebook_config.py 出现在

中的

that ended up as jupyter_notebook_config.py in

%USERPROFILE%\.jupyter

使用

jupyter --paths

查看您的AWS上的Jupyter正在搜索哪些目录.

to see which directories your Jupyter on AWS is searching for config files.

最后,在该配置文件中,您可以注释掉一行并指向应包含笔记本(和内核)的目录:

Finally, in that config file there is a line you can comment out and point to the directory that should contain your notebooks (and kernels):

## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = ''

当然,请确保您在该行上提及的目录实际上是您(可以创建和)写入的.

Of course, make sure the directory that you mention on that line is actually (created and) writeable by you.

这篇关于权限被拒绝:Untitled.ipynb Windows 10 AWS Workspaces的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆