jupyter / jupyter/nbformat

Clarifying raw_mimetype?

Open
#229 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
313
Forks
176
PR merge metrics
No merged PRs in 30d

Description

Hi,

When experimenting in a Jupyterlab instance, if I change the "Raw NBConvert Format", it results in for example

```json
{
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext",
"tags": []
},
"source": []
}
```

but from [the doc here](https://nbformat.readthedocs.io/en/latest/format_description.html#raw-nbconvert-cells):

```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]"
}
```

The difference is the former uses `raw_mimetype` as the key of the mime-type, and later uses `format`.

Could you clarify the usage of these 2? Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.