:orphan: |rss_image| **notebook - 1/1** :ref:`Blog ` :ref:`notebook (8) ` :ref:`sphinx (13) ` .. |rss_image| image:: feed-icon-16x16.png :target: ../_downloads/rss.xml :alt: RSS ---- .. index:: notebook .. _ap-cat-notebook-0: notebook - 1/1 ++++++++++++++ .. blogpostagg:: :title: AttributeError: module 'jinja2' has no attribute 'Markup :date: 2022-03-27 :keywords: jinja2,notebook,nbconvert :categories: notebook :rawfile: 2022/2022-03-27_jinja2.rst The notebook conversion fails again due to the following error: ... .. blogpostagg:: :title: Gallery of notebook :date: 2016-12-25 :keywords: gallery,documentation,notebook,thumbnail :categories: notebook :rawfile: 2016/2016-12-25_first_gallery.rst The module `sphinx-gallery `_ became quite popular. I discovered that `sphinx-nbexamples `_ was doing the same. I integrated the first one into pyquickhelper but I did something different for the second as I already had some custom logic to handle notebooks. :meth:`get_thumbnail `_. First we create a preprocessor: ... .. blogpostagg:: :title: Why do I see invered question in a notebook converted into PDF? :date: 2015-08-30 :keywords: latex, :categories: sphinx,notebook :rawfile: 2015/2015-08-30_unicode_notebook.rst The function :func:`process_notebooks ` still uses the executable `pdflatex `_ and not `xetex `_ which can handle inline unicode characters. That's why they are replaced by *¿* by function :func:`post_process_latex `. .. blogpostagg:: :title: Convert a notebook into slides :date: 2015-05-16 :keywords: script,notebook,slides,add_tag_slide :categories: notebook,automation :rawfile: 2015/2015-05-16_notebook_in_slides.rst I thought it would be easy to convert a notebook into slides. I would just have to execute `nbconvert `_. I went through two issues. The first one came from `reveal.js `_. My first tries did not work. I decided to take the version included in the module `sphinxjp.themes.revealjs `_ and I also updated the output of *nbconvert* to remove external links as much as possible. ... .. blogpostagg:: :title: Add a custom menu to the notebook :date: 2015-05-14 :keywords: script,menu :categories: notebook,automation :rawfile: 2015/2015-05-14_menu_notebook.rst The function :func:`add_notebook_menu ` add HTML and Javascript to the notebook to create links to all sections in the notebook:: ... .. blogpostagg:: :title: Visualize differences between two files in a notebook :date: 2015-04-23 :keywords: diffview,difflib.js,differences :categories: javascript,notebook :rawfile: 2015/2015-04-23_diffview.rst It is now possible to visualize the differences between two files directly from a notebook: ... ---- |rss_image| **notebook - 1/1** :ref:`2020-08 (2) ` :ref:`2020-09 (1) ` :ref:`2021-01 (1) ` :ref:`2022-03 (1) ` :ref:`2023-05 (1) `