Skip to content

nbconvert to notebook doesn't respect line endings #1062

@jamesmyatt

Description

@jamesmyatt

On Windows, when I run

jupyter nbconvert --to notebook --execute --inplace "Untitled25.ipynb"

it uses CRLF line endings, but when when I open and save it directly via Jupyter notebook or Jupyterlab it always saves with LF line endings.

I think that the best solution would be to match the behaviour of Jupyter notebook, i.e. replace the line endings with LF. Alternatively, it should maintain the existing line endings, rather than (presumably) always using "native".

nbconvert 5.5.0, notebook 5.7.8, pandoc 2.7.3, juptyerlab 1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    format:Notebookpertains to exporting to the Notebook format

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions