Skip to content

notebook stores HTML escaped text in the file #1205

@minrk

Description

@minrk

The notebook frontend escapes various plaintext things for HTML output, but it shouldn't save the transformed versions to files, which it does currently.

This code:

In [1]: u'hi'
Out[1]: u'hi'

In []: |

Is stored in the ipynb as:

    {
     "cell_type": "code", 
     "collapsed": false, 
     "input": [
      "u'hi'"
     ], 
     "language": "python", 
     "outputs": [
      {
       "output_type": "pyout", 
       "prompt_number": 1, 
       "text": [
        "u'hi'"
       ]
      }
     ], 
     "prompt_number": 1
    }, 
    {
     "cell_type": "code", 
     "collapsed": true, 
     "input": [], 
     "language": "python", 
     "outputs": [], 
     "prompt_number": " "
    }

There should be zero html escapes in .ipynb files outside explicit HTML fields.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions