Cannot open new Jupyter Notebook [Permission Denied]

前端 未结 19 2841
囚心锁ツ
囚心锁ツ 2020-12-08 10:18

I have installed Jupyter Notebook on ubuntu 16.04 using pip3. I can execute jupyter notebook command. It opens and shows a list of current path directories.

相关标签:
19条回答
  • 2020-12-08 10:46

    I had the same issue and it turned out my windows password had changed since I shared my drive with docker.

    The fix was to rest my credentials in docker settings -> shared drives -> reset credentials and then reshare my drive.

    0 讨论(0)
  • 2020-12-08 10:46

    I encountered same problem when I installed latest version of anaconda navigator 64 bit on windows 10.

    I got to know that INSTALLING 32 BIT VERSION ON WINDOWS 10 will solve the issue. It worked for me. Jupyter is running smoothly now.

    0 讨论(0)
  • 2020-12-08 10:47

    Seems like the problem is in the last release, so

    pip install notebook==5.6.0
    

    must solve the problem!

    0 讨论(0)
  • 2020-12-08 10:47

    On a Windows machine run the python command prompt as administrator. That should resolved the permissions issue when creating a new python 3 notebook.

    0 讨论(0)
  • 2020-12-08 10:49

    Based on my experience on Ubuntu 18.04:

    1. Check Jupyter installation

    first of all make sure that you have installed and/or upgraded Jupyter-notebook (also for virtual-environment):

    pip install --upgrade jupyter 
    

    2. Change the Access Permissions (Use with Caution!)

    then try to change the access permission for you

    sudo chmod -R 777 ~/.local
    

    where 777 is a three-digit representation of the access permission. In sense that each of the digits representing short format of the binary one (e.g. 7 for 111). So, 777 means that we set permission access to read, write and execute to 1 for all users (Owner, Group or Other)

    Example.1

    777 : 111 111 111

    or

    777 : rwx-rwx-rwx

    Example.2

    755 : 111 101 101

    • Owner: rwx=4+2+1=7
    • Group: r-x=4+0+1=5
    • Other: r-x=4+0+1=5

    (More about chmod : File Permissions and attributes)

    3. Run jupyter

    afterwards run your jupyter notebook:

    jupyter-notebook
    

    Note: (These steps also solve your Visual-Studio code (VS-Code) problems regarding permissions while using ipython and jupyter for python-interactive-console.)

    0 讨论(0)
  • 2020-12-08 10:51

    It might be a trust issue.
    Command-line
    jupyter trust /path/to/notebook.ipynb
    here is the documentation link :
    http://jupyter-notebook.readthedocs.io/en/latest/security.html#security-in-notebook-documents

    0 讨论(0)
提交回复
热议问题