Open shriram opened 5 years ago
That's an incomplete reporting of the error -- it gave a stack trace, too! @jswrenn the issue for you is the internal error. @sorawee , @schanzer the actual issue for you is in https://code.pyret.org/editor#share=189UgLQQ3Eag5JtrxpBjFzLMS3BO9rA21, according to the trace:
@schanzer and @shriram: you need to decide which version of pie-chart
do you want to use. The one from plot
library expects the second argument to be a PlotWindowOptions
(i.e., a function). The one from Bootstrap: DataScience teachpack expects the second argument to be a string. What happens here is that Shriram uses the teachpack one, but expects the interface of the plot
library.
In any case, you should not be using the plot
library anymore. It's been deprecated for years. Use chart
instead (note that the teachpack does use the chart library).
Do we have any sense for how many people use the old plot library? Maybe this is crazy, but maybe it makes sense to throw an error message recommending that people shift over to the chart library?
I've been wanting to kill the deprecated libraries for long time. Just let me know when you reach a conclusion.
This program
https://code.pyret.org/editor#share=1ouED7NupAEhx0qUiaxzB9I5YZ0XZcUZz&v=01bb5ff
followed by this REPL expression
gives