cas-popup directive#
The cas-popup directive creates a button that opens a GeoGebra CAS (Computer Algebra System) window in a resizable, draggable popup dialog. The calculator state is persisted in the browser’s local storage.
Basic usage#
A default CAS button with a 350×500 window:
```{cas-popup}
```
which yields:
Custom size#
Specify width and height in pixels:
```{cas-popup} 600 700
```
which yields:
Options#
Option |
Meaning |
|---|---|
|
|
Arguments#
The directive accepts up to four positional arguments:
Position |
Meaning |
Default |
|---|---|---|
1 |
Width in pixels |
|
2 |
Height in pixels |
|
3 |
Button text |
|
4 |
Dialog title |
|
Source#
The implementation lives in src/munchboka_edutools/directives/cas_popup.py.