Python Reference¶
These are autogenerated Python references for the PrairieLearn library. These helpers are available in the Python environment when running a PrairieLearn question.
Note
The prairielearn
module is not fully documented yet. Please refer to the source code for a full reference.
You can use
from prairielearn.<submodule> import ...
to use any of these helpers. Any code from prairielearn.internal
should be considered internal and may change without notice.
Warning
The following imports are now deprecated.
import colors
import to_precision
import python_helper_sympy
import prairielearn.colors
import prairielearn.to_precision
import prairielearn.sympy_utils
prairielearn ¶
Modules:
Name | Description |
---|---|
core |
Utilities for building questions and elements in PrairieLearn. |
sympy_utils |
Utility functions for parsing and evaluating SymPy expressions. |
colors |
Custom colors for the PrairieLearn project based on Coloraide. |
unicode_utils |
Utilities for working with unicode strings. |
internal |
Internal utilities for PrairieLearn. |