`\require{mhchem}` not working in jupyter markdown cell - jupyter-notebook

I typed in a markdown cell in a juypter notebook and inside juypter lab: $$\require{mhchem} \pu{123 kJ//mol}$$. That is not rendered as wanted. Any hint?

Related

How to view a markdown file in jupyter lab properly?

How to view a markdown file in Jupyter lab properly?
The readme file of a git project is written in markdown, as usual. How can one properly view it in Jupyter lab (rendered)? Currently I see the text version only.
A good solution is shown here in the
youtube video
Open the file, right click on the content, "Show markdown preview"
Right click on the open markdown text editor area and you should get a menu option "Show markdown preview". Select that and it will render the text into markdown in another window (side by side by default)

Numbered heading in markdown

I have starting using jupyter notebook and jupyter lab, and in markdown cells the heading formatting is shown with numbers, how to have heading not to show numbers or better how to decide when and where to show heading numbers?
In jupyter lab you can show the "Table of Content" view in the left pane. In the toolbar of the pane there is a button for "Toggle Auto Numbering"
In classic notebook interface I don't know how to do the same, but luckily I don't use classic notebook.

Is it possible to customize markdown rendering in a Jupyter notebook to add custom links?

I want to add a custom link syntax in the Markdown cells in a Jupyter notebook so that I can have a Markdown cell that looks like this:
See Cell ref:label-1 for example
And the "ref:label-1" would be rendered as a hyperlink that when clicked on would jump to a cell in the notebook that was somehow labeled with "label-1". The hyperlink would also have a tooltip that shows the cell contents.
Is anything like this even possible? I have not found any starting points to build from so far.

ipywidgets not rendering with nbconvert using jupyter/scipy-notebook docker image

When I convert a notebook containing an ipywidget, the widget doesn't render, only the label is printed. Is it possible to get nbconvert to render the ipywidget when converting to html or pdf? I don't need interactivity, just a static image.
Here is the notebook defining a slider widget
And here is the output after running nbconvert --to pdf widget-test.ipynb
I went through the process of saving the notebook widget state according to the official instructions before converting the notebook.
I am using the latest jupyter/scipy-notebook docker image.

ipython notebook nbconvert - how to display html output

I use ipython nbconvert mynotebook.ipynb --to pdf to get a pdf file of my notebook. The picture below shows the (latex-)generated output. How can I change the behavior of nbconvert so that it shows the rendered HTML and not the object string representation?

Resources