Open moorepants opened 3 years ago
Thanks for the prompt reply Jason,
I am cc'ing Elena, my student working on it, and she just made a copy on this test page, https://chem.libretexts.org/Courses/University_of_Arkansas_Little_Rock/01403L%3A0General_Chemistry_Lab_(Fall_2021)/2%3A_Graphing/4%3A_Test
Cheers, Bob
This behavior is determined in src/dialogConfig.js
and seems to be determined by the no-code
and noCode
variables. I expect that this is actually intended behavior for ckeditor-binder-plugin, but front-end users are expecting something different. The script being used will prompt you with multiple input boxes and then do a calculation and display the result.
We'll have to look more into the code. I think the Output Only option only really works properly with widgets, and it might require a somewhat major extension to get it to work with this script as well.
A simple way to hide the code is to write the code in a script file and import it, so only one or two lines of code are needed to create the output.
I tried replacing the input boxes with FloatText widgets but there isn't an immediately easy and intuitive way to integrate them.
It looks like the widgets display as static outputs when using the "Output Only" option anyways, so it wouldn't be useful. This option doesn't actually connect the cell to a kernel I believe, so there is currently no way to get interactive output with the "Output Only" option.