Skip to content

Doc CI failure due to seaborn bug #34521

Closed

Description

@lucyleeow

Warning

This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.

Doc CI is currently failing: https://app.circleci.com/pipelines/github/scikit-learn/scikit-learn/80636/workflows/40ebac76-5fb3-4830-b972-27e2a16b2e3f/jobs/357479

due to a mpl warning:

matplotlib._api.deprecation.MatplotlibDeprecationWarning: vert: bool was deprecated in Matplotlib 3.11 and will be removed in 3.13. Use orientation: {'vertical', 'horizontal'} instead.

originating from our seaborn call:

sns.boxplot(data=coefs, orient="h", color="cyan", saturation=0.5, whis=10)

fixed in: mwaskom/seaborn#3820

but AFAICT this is only released in the newest patch: https://sources.debian.org/patches/seaborn/0.13.2-6/ ?

Details
    Traceback (most recent call last):
      File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/sphinx/cmd/build.py", line 432, in build_main
        app.build(args.force_all, args.filenames)
        ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/sphinx/application.py", line 444, in build
        self.events.emit('build-finished', None)
        ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/sphinx/events.py", line 441, in emit
        results.append(listener.handler(self._app, *args))
                       ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
      File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/sphinx_gallery/gen_gallery.py", line 1592, in summarize_failing_examples
        raise ExtensionError(fail_message)
    sphinx.errors.ExtensionError: Here is a summary of the problems encountered when running the examples:
    
    Unexpected failing examples (1):
    
        ../examples/inspection/plot_linear_model_coefficient_interpretation.py failed leaving traceback:
    
        Traceback (most recent call last):
          File "/home/circleci/project/examples/inspection/plot_linear_model_coefficient_interpretation.py", line 370, in <module>
            sns.boxplot(data=coefs, orient="h", color="cyan", saturation=0.5, whis=10)
            ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/seaborn/categorical.py", line 1634, in boxplot
            p.plot_boxes(
            ~~~~~~~~~~~~^
                width=width,
                ^^^^^^^^^^^^
            ...<8 lines>...
                plot_kws=kwargs,
                ^^^^^^^^^^^^^^^^
            )
            ^
          File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/seaborn/categorical.py", line 700, in plot_boxes
            artists = ax.bxp(**boxplot_kws)
          File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/matplotlib/_api/deprecation.py", line 477, in wrapper
            return func(*args, **kwargs)
          File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/matplotlib/axes/_axes.py", line 4842, in bxp
            _api.warn_deprecated(
            ~~~~~~~~~~~~~~~~~~~~^
                "3.11",
                ^^^^^^^
                name="vert: bool",
                ^^^^^^^^^^^^^^^^^^
                alternative="orientation: {'vertical', 'horizontal'}",
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            )
            ^
          File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/matplotlib/_api/deprecation.py", line 94, in warn_deprecated
            warn_external(warning, category=MatplotlibDeprecationWarning)
            ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/home/circleci/miniforge3/envs/testenv/lib/python3.14/site-packages/matplotlib/_api/__init__.py", line 494, in warn_external
            warnings.warn(message, category, **kwargs)
            ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        matplotlib._api.deprecation.MatplotlibDeprecationWarning: vert: bool was deprecated in Matplotlib 3.11 and will be removed in 3.13. Use orientation: {'vertical', 'horizontal'} instead.

cc @lesteve

Activity

  1. lesteve commented on Jul 20, 2026

    @lesteve
    Member

    Yeah I have noticed it the other day, not sure how this happened since the lock-file update should not have happened (unless somebody tweaked the auto-lock file update PR and forgot the [doc build] before merging the lock-file update 😅).

  2. lucyleeow commented on Jul 20, 2026

    @lucyleeow
    MemberAuthor

    Ah good, I knew you'd be on to it!
    I saw it after I merged a doc PR and got worried it was me 😅

  3. lesteve commented on Jul 20, 2026

    @lesteve
    Member

    Happy to review a PR that fixes it 😉, feel free to ping me if someone create a PR.

  4. lesteve commented on Jul 20, 2026

    @lesteve
    Member

    I could not resist figuring out how that happened, the fingers point at #34419 and yeah indeed no [doc build] in the commit was used 😅

  5. betatim commented on Jul 20, 2026

    @betatim
    Member

    I'll investigate a fix for this as I made the update.

  6. moved this to Todo in Labson Jul 20, 2026
  7. moved this from Todo to In progress in Labson Jul 20, 2026
  8. moved this from In progress to Done in Labson Jul 20, 2026
  9. lesteve commented on Jul 20, 2026

    @lesteve
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions