Instructions to use jonl521/modeling_simple with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jonl521/modeling_simple with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jonl521/modeling_simple", device_map="auto") - Notebooks
- Google Colab
- Kaggle
modeling_simple / .venv /lib /python3.14 /site-packages /sympy /plotting /backends /textbackend /text.py
Download .venv/lib/python3.14/site-packages/sympy/plotting/backends/textbackend/text.py from jonl521/modeling_simple: direct link, hf CLI and curl.
- Browser
- Download file 803 Bytes
-
https://huggingface.co/jonl521/modeling_simple/resolve/main/.venv/lib/python3.14/site-packages/sympy/plotting/backends/textbackend/text.py
- Command line
-
hf download hf://jonl521/modeling_simple/.venv/lib/python3.14/site-packages/sympy/plotting/backends/textbackend/text.py
-
curl -L -o text.py https://huggingface.co/jonl521/modeling_simple/resolve/main/.venv/lib/python3.14/site-packages/sympy/plotting/backends/textbackend/text.py
803 Bytes
| import sympy.plotting.backends.base_backend as base_backend | |
| from sympy.plotting.series import LineOver1DRangeSeries | |
| from sympy.plotting.textplot import textplot | |
| class TextBackend(base_backend.Plot): | |
| def __init__(self, *args, **kwargs): | |
| super().__init__(*args, **kwargs) | |
| def show(self): | |
| if not base_backend._show: | |
| return | |
| if len(self._series) != 1: | |
| raise ValueError( | |
| 'The TextBackend supports only one graph per Plot.') | |
| elif not isinstance(self._series[0], LineOver1DRangeSeries): | |
| raise ValueError( | |
| 'The TextBackend supports only expressions over a 1D range') | |
| else: | |
| ser = self._series[0] | |
| textplot(ser.expr, ser.start, ser.end) | |
| def close(self): | |
| pass | |