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.
Related
I would like to hide the content of a markdown cell, so users can unhide it after. I have tried following https://jupyterbook.org/en/stable/interactive/hiding.html however this is just essentially giving me the text of the command
gives
What am I missing? I have tried other options including using {note} Hello and the other options on the page without any success.
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)
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.
When I download a Jupyter Notebook as slides, the links are not active (i.e. they don't take you anywhere). How do I link a table of contents page to the respective slides?
Linking to a cell can be done by anchoring it and then calling it later see answer here (e.g. place<a id="another_cell"></a> in the desired cell to jump to and place [Another Cell](#another_cell) where you'd click "Another Cell"). This works fine in an download of the Reveal.JS as a PDF, but not when doing slides.
Current code to publish with nbconvert:
jupyter nbconvert SOME_NOTEBOOK.ipynb
--to slides
--output-dir .\SOME_FOLDER
--SlidesExporter.reveal_theme=serif
--SlidesExporter.reveal_scroll=True
--SlidesExporter.reveal_transition=none
--TemplateExporter.exclude_input=True
--TemplateExporter.exclude_output_prompt=True
--reveal-prefix=./lib/reveal.js-3.8.0
You can try this:
Slide number 2
Note:
The slide count starts after the slide that has the table of contents.
Is there a method to exclude some cells from the NBconvert process
For instance. An embedded video is cool when running to HTML, but when converting the HTML to PDF it creates a problem. So I want to exclude it in some instances.
Found a nice workaround for this, using the 'slides' option of nbconvert:
In your iPython notebook under "Cell Toolbar" select "Slideshow"
Then in the top right of the cells that you don't want to show select Slide Type "skip"
Now run python nbconvert your_notebook.ipynb --to slides
Instead of serving the slide, just open the resulting html in a browser.
And.. It doesn't contain the slides you told it to skip!
Hope this helps.