<jupyter_start><jupyter_text>This notebook is part of the `nbsphinx` documentation: http://nbsphinx.readthedocs.io/.  Raw CellsThe "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. UsageTo select a desired format from within Jupyter, select the cell containing your special code and choose options from the following dropdown menus:  1. Select "Raw NBConvert"2. Switch the Cell Toolbar to "Raw Cell Format"3. Chose the appropriate "Raw NBConvert Format" within the cell![Steps for converting cells to Raw formats in Jupyter](images/raw_cells.png)  Available Raw Cell FormatsThe following examples show how different Jupyter cell formats are rendered by Sphinx.  NoneBy default (if no cell format is selected), the cell content is included (without any conversion) in both the HTML and LaTeX output.This is typically not useful at all.<jupyter_code>"I'm a raw cell with no format."<jupyter_output><empty_output><jupyter_text>reSTRaw cells in "reST" format are interpreted as reStructuredText and parsed by Sphinx. The result is visible in both HTML and LaTeX output.<jupyter_code>"**I'm** a *raw cell* in reST_ format."

.. _reST: http://sphinx-doc.org/rest.html<jupyter_output><empty_output><jupyter_text>MarkdownRaw cells in "Markdown" format are interpreted as Markdown, and the result is included in both HTML and LaTeX output.  Since the Jupyter Notebook also supports normal Markdown cells, this might not be useful *at all*.<jupyter_code>"**I'm** a *raw cell* in [Markdown](https://daringfireball.net/projects/markdown/) format."<jupyter_output><empty_output><jupyter_text>HTMLRaw cells in "HTML" format are only visible in HTML output. This option might not be very useful, since raw HTML code is also allowed within normal Markdown cells.<jupyter_code><p>&ldquo;<b>I&rsquo;m</b> a <em>raw cell</em> in
<a href="https://www.w3.org/html/">HTML</a> format.&rdquo;</p><jupyter_output><empty_output><jupyter_text>LaTeXRaw cells in "LaTeX" format are only visible in LaTeX output.<jupyter_code>\textbf{I'm} a \emph{raw cell} in \href{https://www.latex-project.org/}{\LaTeX} format.<jupyter_output><empty_output><jupyter_text>PythonRaw cells in "Python" format are not visible at all (nor executed in any way).<jupyter_code>print("I'm a raw cell in \"Python\" format!")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.093711467324291, 'fraction_numerical': 0.0016440608302507192, 'mean_word_length': 5.798882681564246, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '56770', 'license': 'MIT', 'n_tokens_mistral': 759, 'n_tokens_neox': 722, 'n_words': 285, 'path': 'doc/raw-cells.ipynb', 'repo_name': 'lamby/nbsphinx', 'size': '2433'}