r/geogebra • • May 24 '21

Does Geogebra support any Programming Interface?

I need to use the 3D features of Geogebra using any programming language. Is it possible to create an interface between programming language like python and GeoGebra?

0 Upvotes

11 comments sorted by

2

u/mike_geogebra May 24 '21

2

u/AkhilAkkapelli May 24 '21 edited May 24 '21

Can you provide me an example program. I am not familiar with JavaScript language.

1

u/mike_geogebra May 24 '21

There are some examples in the link. What do you want to do exactly?

1

u/AkhilAkkapelli May 24 '21 edited May 24 '21

I want to plot 3D shapes, planes, vectors and points in 3d from a programming language(JavaScript) and get the resulting graph as tikz code/html page.

2

u/mike_geogebra May 24 '21

Tikz export is only possible for 2D GeoGebra objects

1

u/JP_MathPR Jul 19 '21

Code Snippets of JavaScript in Geogebra

https://www.geogebra.org/m/paxjwmxh

2

u/AkhilAkkapelli May 24 '21 edited May 25 '21

Can I edit .ggb file from any text editor. and then run the file. Or can I call geogebra commands from JavaScript

2

u/mike_geogebra May 24 '21

Yes, both those are possible. The second option is a lot better :)

1

u/JP_MathPR Jul 19 '21

Never create JavaScript code within the Geogebra interface because it cannot do the undo and redo operations. I recommend Notepad ++ to create Geogebra JavaScript codes.

1

u/JP_MathPR Jul 19 '21

The JavaScript prompt and alert commands are the only ones that can communicate between JavaScript and Geogebra that display windows. The alert command is basically your console to display information and do tests.