Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
playground:test_jupyter [2020/03/26 12:50] – created hnagel | playground:test_jupyter [2020/05/11 20:11] (current) – hnagel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Polymake jupyter tutorials ====== | + | <code perl> |
+ | > $f = $s-> | ||
+ | > $f-> | ||
+ | </ | ||
+ | < | ||
+ | type: PolyhedralFan< | ||
- | ===== 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, | ||
- | 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 " | + | |
- | ==== Code and code output ==== | + | |
- | <code perl> | + | |
- | > application ' | + | |
- | > # we might need to | + | |
- | > # reconfigure(" | + | |
- | > # one svg output | + | |
- | > svg(cube(3)-> | + | |
</ | </ | ||
- | {{ tutorial: | ||
<code perl> | <code perl> | ||
- | > # multiple svg outputs in a scrollable window | + | > $f-> |
- | > svg(cube(3)-> | + | |
- | > svg(cube(3)-> | + | |
</ | </ | ||
- | {{ tutorial: | ||
- | {{ tutorial:jupyter_tutorials: | + | looks like this till now: |
<code perl> | <code perl> | ||
- | > # a threejs output | + | > $f = $s-> |
- | > cube(3)-> | + | > $f-> |
+ | type: PolyhedralFan< | ||
+ | |||
+ | 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-> | ||
</ | </ |