Icecup
A simple frontend for the Icepool Python package.
Tips
- Use the output(die, [label]) function to add a die to the plot and print its probabilities. You can use the optional second label argument to give the die a name.
- Experimental: Use the area(die, [label]) function to fill the area between the curve and the previous area plot. You should plot from the lowest/most specific condition to highest/least specific condition.
- Use the limit(left, right) function to limit the extent of the x-axis (inclusive). None will not limit values on that side.
- In addition to the "Run" button, you can use Ctrl-Enter or Cmd-Enter to run the script.
- The URL updates automatically when you run the script.
- If you use the random module (including .sample() methods), the script will be re-run each time.
Useful links
Built using the
Ace code editor,
Chart.js, and
Pyodide.