Skip to content

Commit 206e15d

Browse files
authored
Extend the API (#37)
* Added new methods to the canvas API * Extended the canvas API, added subplot factory like in matplotlib * Install tikzfigure[vis] * Updated the tutorials * Set version to 0.1.4 * Formatting and add black[jupyter] to deps * Skip tikz tutorial in the CI and docs
1 parent b587c15 commit 206e15d

14 files changed

Lines changed: 3273 additions & 377 deletions

.github/workflows/ci_pipeline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ jobs:
3737
3838
- name: Test tutorials
3939
run: |
40-
jupyter nbconvert --to notebook --execute tutorials/*.ipynb --output-dir=/tmp --ExecutePreprocessor.timeout=300
40+
# tutorial_07_tikz.ipynb requires pdflatex — skip it in CI
41+
jupyter nbconvert --to notebook --execute \
42+
$(ls tutorials/*.ipynb | grep -v tutorial_07_tikz) \
43+
--output-dir=/tmp --ExecutePreprocessor.timeout=300

docs/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def setup(app):
3939
]
4040

4141
templates_path = ["_templates"]
42-
exclude_patterns = []
42+
exclude_patterns = [
43+
# tutorial_07_tikz.ipynb requires pdflatex to render — skip during docs build
44+
"tutorials/tutorial_07_tikz.ipynb",
45+
]
4346

4447

4548
# -- Options for HTML output -------------------------------------------------

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "maxplotlibx"
7-
version = "0.1.3"
7+
version = "0.1.4"
88
description = "A reproducible plotting module with various backends and export options."
99
readme = "README.md"
1010
requires-python = ">=3.8"
@@ -18,7 +18,7 @@ dependencies = [
1818
"matplotlib",
1919
"pint",
2020
"plotly",
21-
"tikzfigure>=0.2.0",
21+
"tikzfigure[vis]>=0.2.0",
2222
]
2323
[project.optional-dependencies]
2424
test = [
@@ -36,7 +36,7 @@ docs = [
3636
dev = [
3737
"maxplotlibx[test,docs]",
3838
"ruff",
39-
"black",
39+
"black[jupyter]",
4040
"isort",
4141
"jupyterlab",
4242
"nbstripout",
@@ -56,4 +56,4 @@ line-length = 88
5656
line-length = 88
5757

5858
[tool.isort]
59-
profile = "black"
59+
profile = "black"

0 commit comments

Comments
 (0)