|
15 | 15 | "source": [ |
16 | 16 | "# Raw Cells\n", |
17 | 17 | "\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", |
19 | 31 | "\n", |
20 | 32 | "## Usage\n", |
21 | 33 | "\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", |
23 | 35 | "\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", |
27 | 37 | "\n", |
28 | | - "\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 | + "\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 | + "\n", |
29 | 58 | "<!-- this comment makes pandoc create an in-line image -->" |
30 | 59 | ] |
31 | 60 | }, |
|
176 | 205 | } |
177 | 206 | }, |
178 | 207 | "nbformat": 4, |
179 | | - "nbformat_minor": 1 |
| 208 | + "nbformat_minor": 4 |
180 | 209 | } |
0 commit comments