Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(python): Bump docs dependencies #17199

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ numba
# https://github.com/pola-rs/polars/issues/16998
numpy<2

mkdocs-material==9.5.2
mkdocs-macros-plugin==1.0.4
mkdocs-material==9.5.27
mkdocs-macros-plugin==1.0.5
mkdocs-redirects==1.2.1
material-plausible-plugin==0.2.0
markdown-exec[ansi]==1.8.0
PyGithub==2.3.0
markdown-exec[ansi]==1.9.3
pygithub==2.3.0
2 changes: 1 addition & 1 deletion docs/src/python/user-guide/expressions/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

out = df.select(
pl.struct(["keys", "values"])
.map_elements(lambda x: len(x["keys"]) + x["values"])
.map_elements(lambda x: len(x["keys"]) + x["values"], return_dtype=pl.Int64)
.alias("solution_map_elements"),
(pl.col("keys").str.len_bytes() + pl.col("values")).alias("solution_expr"),
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# --8<-- [start:setup]

import warnings

import polars as pl
from polars.exceptions import PolarsInefficientMapWarning

warnings.simplefilter("ignore", PolarsInefficientMapWarning)
# --8<-- [end:setup]

# --8<-- [start:dataframe]
Expand Down Expand Up @@ -57,7 +61,7 @@ def diff_from_mean(series):
# --8<-- [end:np_log]

# --8<-- [start:diff_from_mean_numba]
from numba import guvectorize, int64, float64
from numba import float64, guvectorize, int64


# This will be compiled to machine code, so it will be fast. The Series is
Expand Down
12 changes: 6 additions & 6 deletions py-polars/docs/requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ pyarrow

hypothesis==6.103.0

sphinx==7.2.4
sphinx==7.3.7

# Third-party Sphinx extensions
autodocsumm==0.2.11
autodocsumm==0.2.12
numpydoc==1.7.0
pydata-sphinx-theme==0.14.1
pydata-sphinx-theme==0.15.4
sphinx-autosummary-accessors==2023.4.0
sphinx-copybutton==0.5.2
sphinx-design==0.6.0
sphinx-favicon==1.0.1
sphinx_reredirects==0.1.3
sphinx-toolbox==3.5.0
sphinx-reredirects==0.1.4
sphinx-toolbox==3.6.0

livereload==2.6.3
livereload==2.7.0
3 changes: 0 additions & 3 deletions py-polars/tests/docs/test_user_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,5 @@ def _change_test_dir() -> Iterator[None]:
@pytest.mark.docs()
@pytest.mark.parametrize("path", snippet_paths)
@pytest.mark.usefixtures("_change_test_dir")
@pytest.mark.filterwarnings(
r"ignore:\nExpr\.map_elements:polars.exceptions.PolarsInefficientMapWarning"
)
def test_run_python_snippets(path: Path) -> None:
runpy.run_path(str(path))