Skip to content

Commit d7241b1

Browse files
authored
Update explanation regarding Raw cells (#632)
1 parent 64cd5a4 commit d7241b1

File tree

4 files changed

+36
-7
lines changed

4 files changed

+36
-7
lines changed

doc/images/raw_cells.png

-46.8 KB
Binary file not shown.
38.7 KB
Loading
36.8 KB
Loading

doc/raw-cells.ipynb

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,46 @@
1515
"source": [
1616
"# Raw Cells\n",
1717
"\n",
18-
"The \"Raw NBConvert\" cell type can be used to render different code formats into HTML or LaTeX by Sphinx. This information is stored in the notebook metadata and converted appropriately.\n",
18+
"Any Jupyter Notebook consists of cells of three different types:\n",
19+
"[Code cells](./code-cells.ipynb),\n",
20+
"[Markdown cells](./markdown-cells.ipynb)\n",
21+
", and/or Raw cells.\n",
22+
"While most Jupyter Notebook users are very familiar with Code cells and Markdown cells in Jupyter Notebooks, Raw cells are less frequently used.\n",
23+
"For Jupyter Notebook, they are introduced\n",
24+
"[here](https://jupyter-notebook.readthedocs.io/en/stable/notebook.html?highlight=raw#raw-cells)\n",
25+
"and for JupyterLab\n",
26+
"[here](https://jupyterlab.readthedocs.io/en/stable/extension/notebook.html?highlight=raw#model).\n",
27+
"The Raw cells are also sometimes referred to as Raw NBConvert cells in the context of\n",
28+
"[nbconvert](https://nbconvert.readthedocs.io/en/latest/architecture.html?highlight=raw#a-detailed-pipeline-exploration).\n",
29+
"The Raw cell type can be used to render different code formats into HTML or LaTeX by Sphinx.\n",
30+
"This information is stored in the notebook metadata and converted appropriately.\n",
1931
"\n",
2032
"## Usage\n",
2133
"\n",
22-
"To select a desired format from within Jupyter, select the cell containing your special code and choose options from the following dropdown menus: \n",
34+
"Raw cells are created differently depending on the user interface.\n",
2335
"\n",
24-
"1. Select \"Raw NBConvert\"\n",
25-
"2. Switch the Cell Toolbar to \"Raw Cell Format\"\n",
26-
"3. Chose the appropriate \"Raw NBConvert Format\" within the cell\n",
36+
"### Jupyter Notebook\n",
2737
"\n",
28-
"![Steps for converting cells to Raw formats in Jupyter](images/raw_cells.png)\n",
38+
"To select a desired format from within Jupyter Notebook, select the cell containing your special code and choose options from the following dropdown menus:\n",
39+
"\n",
40+
"1. Select \"Raw NBConvert\" in the Menu Toolbar (just below the two menus \"Widgets\" and \"Help\").\n",
41+
"2. Click on the \"Raw NBConvert Format\" dropdown menu within the cell and select \"reST\".\n",
42+
"\n",
43+
"![Steps for converting cells to Raw formats in Jupyter Notebook](images/raw_cells_jupyter_notebook.png)\n",
44+
"<!-- this comment makes pandoc create an in-line image -->\n",
45+
"\n",
46+
"### JupyterLab\n",
47+
"\n",
48+
"To select a desired format from within JupyterLab, first activate the right sidebar by clicking on View in the Menu Toolbar.\n",
49+
"Then you ensure that in front of Show Right Sidebar there is a tick.\n",
50+
"Once the Right Sidebar is shown, you are ready to go.\n",
51+
"\n",
52+
"Now you select the cell containing your special code and choose options from the following dropdown menus:\n",
53+
"\n",
54+
"1. Select \"Raw\" in the Notebook Toolbar (just next to the symbols that run cells or reload the kernel).\n",
55+
"2. Click on \"Raw NBConvert Format\" in the Right Sidebar and select \"reStructured Text\".\n",
56+
"\n",
57+
"![Steps for converting cells to Raw formats in JupyterLab](images/raw_cells_jupyterlab.png)\n",
2958
"<!-- this comment makes pandoc create an in-line image -->"
3059
]
3160
},
@@ -176,5 +205,5 @@
176205
}
177206
},
178207
"nbformat": 4,
179-
"nbformat_minor": 1
208+
"nbformat_minor": 4
180209
}

0 commit comments

Comments
 (0)