Skip to content

File downloaded on Safari from Jupyter can't be uploaded to Jupyter #1800

Open
@crwilcox

Description

@crwilcox

If I download a file in Safari (File>Download>IPYNB) it is altered and cannot be reuploaded using the jupyter table of contents page upload button.

Repro Steps:

  • In safari, Go to try.jupyter.org
  • download any notebook
  • upload the notebook you just downloaded
  • notice the file has two extensions: filename.ipynb.json.
  • Remove .json from the file so it ends up being named filename.ipynb and will be opened as a notebook

Expect: File to be uploaded

Result: File Upload returns a parse error.

Error:

"The error was: SyntaxError: JSON Parse error: Unexpected identifier.

Suspected Root Cause:

Files of type json cannot be uploaded as ipynb on jupyter. If you alter the file on osx to not be of type json it uploads fine. The file is correct and identical, bit for bit, with the same file downloaded in chrome or firefox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions