Skip to content

ipython saving notebooks model is not working with read-only files #8928

Open

Description

@den-run-ai

Today I had one notebook that I checked in to source control. Then of course it is read-only on the file system. When opening the notebook using local ipython/jupyter notebook server and trying to save it, then the following error comes up:

Permission denied: blablabla.ipynb

also the temporary file .~blablabla.ipynb is generated with read-only flag, which looks like exact copy of original notebook.

The problem is that this file is not cleaned up after this error!

This causes the notebook to fail saving even when read-only flag is removed.

Manually removing this temporary file is the current workaround.

windows 7, 64 bit

The version of the notebook server is 4.0.6 and is running on:
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)]

Activity

  1. added this to the not ipython milestone on Jan 26, 2016
  2. takluyver commented on Jan 26, 2016

    @takluyver
    Member

    I'm afraid we're not used to VCSs that make files read only when you commit them. ;-)

    I understand what has gone wrong, I'm not sure how it can practically be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions