jupyter / jupyter/notebook

Raw cells don't match nbformat specification

Open
#4,730 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

According [format documentation](https://nbformat.readthedocs.io/en/latest/format_description.html#code-cells) raw cells have have a following structure:
````json
{
"cell_type" : "raw",
"metadata" : {
# the mime-type of the target nbconvert format.
# nbconvert to formats other than this will exclude this cell.
"format" : "mime/type"
},
"source" : "[some nbformat output text]"
}
````
But in my Jupyter v5.7.8 I found, that my raw cells have a following structure
````json
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/latex"
},
"source": [
"\\newpage"
]
},
````
Is nbformat changed (without documentation updation)? Or Jupyter don't support the format the properly?

Contributor guide

Open the contributing guide

Research direction

Start with the linked raw-cell section of the format documentation and compare its metadata and source representation with the Jupyter v5.7.8 example. Determine whether the specification or notebook behavior is incorrect; done when the documented format and generated raw-cell structure are reconciled.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.