| 1 | --- |
| 2 | jupyter: |
| 3 | kernelspec: |
| 4 | display_name: Octave |
| 5 | language: octave |
| 6 | name: octave |
| 7 | --- |
| 8 | |
| 9 | A markdown cell |
| 10 | |
| 11 | ```octave |
| 12 | 1 + 1 |
| 13 | ``` |
| 14 | |
| 15 | ```octave |
| 16 | % a code cell with comments |
| 17 | 2 + 2 |
| 18 | ``` |
| 19 | |
| 20 | ```octave |
| 21 | % a simple plot |
| 22 | x = -10:0.1:10; |
| 23 | plot (x, sin (x)); |
| 24 | ``` |
| 25 | |
| 26 | ```octave |
| 27 | %plot -w 800 |
| 28 | % a simple plot with a magic instruction |
| 29 | x = -10:0.1:10; |
| 30 | plot (x, sin (x)); |
| 31 | ``` |
| 32 | |
| 33 | And to finish with, a Python cell |
| 34 | |
| 35 | ```python |
| 36 | a = 1 |
| 37 | ``` |
| 38 | |
| 39 | ```python |
| 40 | a + 1 |
| 41 | ``` |