playground:test_jupyter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
playground:test_jupyter [2020/03/26 12:50] – created hnagelplayground:test_jupyter [2020/04/02 09:29] hnagel
Line 1: Line 1:
 ====== Polymake jupyter tutorials ====== ====== Polymake jupyter tutorials ======
  
-===== Creating a notebook that should end up on the Polymake website=====+===== Creating a notebook that should end up on the Polymake website =====
  
-The goal is to automate the conversion process from ipynb markdown,code and code output to dokuwiki+The goal is to automate the conversion process from ipynb markdown,code and code output to dokuwiki.
  
-What is added automatically by dokuwiki: - the table of content based on markdown titles and subtitles (TODO: how extactly)+What is added automatically by dokuwiki:
  
-What the ipynb2dokuwiki converter should optimally do- use nbconvert preprocessor to run all cells and create the output beforehand? - add preamble - with a link to the ipynb file - a cd command so that the following notebook code also works in the shell?+the table of content based on markdown titles and subtitles (TODOhow extactly)
  
-When multiple people work on one tutorial- it is easier to solve merge conflicts or comprehend changes when ipynbs are committed with output cells cleared and no base64 attachements yet+==== What the ipynb2dokuwiki script does====
  
-before merging to the master images should be base64 attached (we might want to change this with a seperate folder for each tutorial?)+Markdown cells will be converted with pypandoc. Code source and output in text format are put in a code frame. Output svgs are extracted\\ 
 +Extracts all attached media from and replaces the links 
 + 
 +==== What the ipynb2dokuwiki script should optimally do ==== 
 + 
 +Use nbconvert preprocessor to run all cells and create the output beforehand? Add preamble with a link to the ipynb file. Add a cd command so that the following notebook code also works in the shell? 
 + 
 +==== Miscellaneous ==== 
 + 
 +When multiple people work on one tutorial it is easier to solve merge conflicts or comprehend changes when ipynbs are committed with output cells cleared and no base64 attachements yet. 
 + 
 +Before merging to the master, however, images should be base64 attached (we might want to change this with a seperate folder for each tutorial?). This can be easily done with drag&drop. 
 + 
 +roblems with pypandoc, which converts ipynb markdown to dokuwiki markdown: 1. enumerations? 2.
 ==== Embedded images ==== ==== Embedded images ====
  
-After conversion the caption "Polymake logo" will be displayed as a tooltip in dokuwiki. {{tutorial:jupyter_tutorials:logo.png|Polymake logo}}+After conversion the caption "Polymake logo" will be displayed as a tooltip in dokuwiki. {{media:tutorial:jupyter_tutorials:logo.png|Polymake logo}}
 ==== Code and code output ==== ==== Code and code output ====
 <code perl> <code perl>
Line 22: Line 35:
 > # one svg output > # one svg output
 > svg(cube(3)->HASSE_DIAGRAM->VISUAL); > svg(cube(3)->HASSE_DIAGRAM->VISUAL);
 +> print "SVG output above";
 </code> </code>
-{{ tutorial:jupyter_tutorials:output_0.svg }}+{{ media:tutorial:jupyter_tutorials:output_0.svg }}
 <code perl> <code perl>
 +SVG output above
 > # multiple svg outputs in a scrollable window > # multiple svg outputs in a scrollable window
 > svg(cube(3)->HASSE_DIAGRAM->VISUAL); > svg(cube(3)->HASSE_DIAGRAM->VISUAL);
 > svg(cube(3)->HASSE_DIAGRAM->VISUAL); > svg(cube(3)->HASSE_DIAGRAM->VISUAL);
 </code> </code>
-{{ tutorial:jupyter_tutorials:output_0.svg }}+{{ media:tutorial:jupyter_tutorials:output_0.svg }}
  
-{{ tutorial:jupyter_tutorials:output_0.svg }}+{{ media:tutorial:jupyter_tutorials:output_0.svg }}
 <code perl> <code perl>
 > # a threejs output > # a threejs output
 > cube(3)->VISUAL; > cube(3)->VISUAL;
 </code> </code>
  • playground/test_jupyter.txt
  • Last modified: 2020/05/11 20:11
  • by hnagel