playground:test_jupyter

Differences

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

Link to this comparison view

Next revision
Previous revision
playground:test_jupyter [2020/03/26 12:50] – created hnagelplayground:test_jupyter [2020/05/11 20:11] (current) hnagel
Line 1: Line 1:
-====== Polymake jupyter tutorials ======+<code perl> 
 +> $f $s->SECONDARY_FAN; 
 +> $f->properties; 
 +</code> 
 +<code> 
 +type: PolyhedralFan<Rational>
  
-===== Creating a notebook that should end up on the Polymake website: =====+MAXIMAL_CONES 
 +{0 1 2} 
 +{0 1 3} 
 +{1 2 4} 
 +{0 2 5}
  
-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) +RAYS 
- +0 1 1 
-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? +1 0 1 
- +1 1 0 
-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 +0 0 1 
- +1 0 0 
-before merging to the master - images should be base64 attached (we might want to change this with a seperate folder for each tutorial?+0 1 0
-==== Embedded images ==== +
- +
-After conversion the caption "Polymake logo" will be displayed as a tooltip in dokuwiki. {{tutorial:jupyter_tutorials:logo.png|Polymake logo}} +
-==== Code and code output ==== +
-<code perl> +
-> application 'polytope'; +
-> # we might need to  +
-> # reconfigure("common::svg.rules"); +
-> # one svg output +
-> svg(cube(3)->HASSE_DIAGRAM->VISUAL);+
 </code> </code>
-{{ tutorial:jupyter_tutorials:output_0.svg }} 
 <code perl> <code perl>
-# multiple svg outputs in a scrollable window +$f->VISUAL;
-> svg(cube(3)->HASSE_DIAGRAM->VISUAL); +
-> svg(cube(3)->HASSE_DIAGRAM->VISUAL);+
 </code> </code>
-{{ tutorial:jupyter_tutorials:output_0.svg }} 
  
-{{ tutorial:jupyter_tutorials:output_0.svg }}+looks like this till now: 
 <code perl> <code perl>
-# a threejs output +$f = $s->SECONDARY_FAN; 
-cube(3)->VISUAL;+$f->properties; 
 +type: PolyhedralFan<Rational> 
 + 
 +MAXIMAL_CONES 
 +{0 1 2} 
 +{0 1 3
 +{1 2 4} 
 +{0 2 5} 
 + 
 + 
 +RAYS 
 +0 1 1 
 +1 0 1 
 +1 1 0 
 +0 0 1 
 +1 0 0 
 +0 1 0 
 + 
 +> $f->VISUAL;
 </code> </code>
  • playground/test_jupyter.1585227055.txt.gz
  • Last modified: 2020/03/26 12:50
  • by hnagel