However, this does not create the function in the Geogebra applet. I looked at the code for the Geogebra block and I think that the problem might be the variable appletObject but I could not figure out why. When I use applet.getAppletObject() in my code instead of the variable, the function gets plotted. Here is what works for me:
Hello, I recently started playing around with the new Geogebra Block. I wanted to try out an example from the docs on using commands inside [[geogebra]][[/geogebra]] blocks to define geogebra objects (https://docs.stack-assessment.org/en/Authoring/GeoGebra/#example-using-some-advanced-features). In the example, the following code is given:
However, this does not create the function in the Geogebra applet. I looked at the code for the Geogebra block and I think that the problem might be the variable
appletObject
but I could not figure out why. When I useapplet.getAppletObject()
in my code instead of the variable, the function gets plotted. Here is what works for me: