Published
Edited
Dec 18, 2018
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
GGBApplet = require("https://cdn.geogebra.org/apps/deployggb.js")
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
ggbApp = GGBApplet({"id":"gapp1","appName": "classic", "width": width, "height": 600, "showToolBar": true, "showAlgebraInput": true, "showMenuBar": true })

Insert cell
{ggbApp.inject('ggb-element');return md`Geogebra started`}
Insert cell
ggbApp.getParameters();
Insert cell
ggbApp.getViews()
Insert cell
ggapp1 = ggbApp.getAppletObject()

Insert cell
ggapp1.evalCommand("A=(2,2)")
Insert cell
//aaaa=ggapp1.getBase64()
Insert cell
Insert cell
//ggapp1.setBase64(aaaa)
Insert cell
cas= (p)=> ggapp1.evalCommandCAS(p)

Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell


Insert cell
Insert cell
Insert cell
gg2 = new GGBApplet({ "appName":"3d","width": width, "height": 600, "showToolBar": false, "showAlgebraInput": false, "showMenuBar": true ,"views": {is3D: false, AV: false, SV: false, CV: true, EV2: false, CP: false, PC: false, DA: false, FI: false, PV: false, macro: false}}, true)
Insert cell
html`<div id="gg2-div"></div>`
Insert cell
// {gg2.inject('gg2-div');return md`Geogebra started`}
Insert cell
ggbteste = { let xx=GGBApplet({"id":"gapteste","appName": "classic", "width": width, "height": 600, "showToolBar": true, "showAlgebraInput": true, "showMenuBar": true }, true);xx.inject('gg2-div');
return xx.getAppletObject()
}
Insert cell
ggbteste.evalCommand("B=(2,3)")
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more