Skip to content

Display plotly figures from gallery example even when running script at CLI.#5347

Merged
rfezzani merged 2 commits intoscikit-image:mainfrom
mkcor:show-plotly-cli
Apr 23, 2021
Merged

Display plotly figures from gallery example even when running script at CLI.#5347
rfezzani merged 2 commits intoscikit-image:mainfrom
mkcor:show-plotly-cli

Conversation

@mkcor
Copy link
Copy Markdown
Member

@mkcor mkcor commented Apr 22, 2021

Description

Hurray! The fix came from reverting 805050a (which conflicted with 37bff40).

Now, example https://scikit-image.org/docs/dev/auto_examples/data/plot_3d.html renders properly in the gallery!

And users will be able to run $ python examples/applications/plot_3d_interaction.py and have all the figures display.

Checklist

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.

@mkcor
Copy link
Copy Markdown
Member Author

mkcor commented Apr 22, 2021

This PR also fixes the thumbnail issue (thumbnail wouldn't display when it was a Plotly figure), see now: https://1745-2014929-gh.circle-artifacts.com/0/doc/build/html/auto_examples/index.html

Copy link
Copy Markdown
Member

@jni jni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha! Ignore my comments in your other PR! 🤦 😅

Copy link
Copy Markdown
Member

@rfezzani rfezzani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Thank you @mkcor !

@rfezzani rfezzani merged commit 2ed4cf9 into scikit-image:main Apr 23, 2021
@mkcor mkcor deleted the show-plotly-cli branch April 23, 2021 08:56
tupui pushed a commit to tupui/scikit-image that referenced this pull request Apr 27, 2021
…at CLI. (scikit-image#5347)

* Revert "set plotly renderer in conf.py"

This reverts commit 805050a.

* Display plotly figures when running script at CLI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants