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

WIP: Replace plotly HTML rendering with Panel #3837

Closed
wants to merge 1 commit into from
Closed

Conversation

jonmmease
Copy link
Collaborator

Rough initial prototype of using Panel to display plotly figures in HoloViews. The goal is to combine this with #3836 and holoviz/panel#529 to support interactive streams with the Plotly backend.

If successful, this would become the new foundation for the work started in #3316 to support Selection1D and RangeXY streams with the Plotly backend.


if LooseVersion(plotly.__version__) < '3.4.0':
raise VersionError(
"The plotly extension requires a plotly version >=3.4.0, "
"please upgrade from plotly %s to a more recent version."
% plotly.__version__, plotly.__version__, '3.4.0')

pn.extension("plotly")

Copy link
Member

Choose a reason for hiding this comment

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

Should remove this, importing the plotting module shouldn't load the extension.

@@ -16,13 +16,17 @@
from .tabular import * # noqa (API import)
from ...core.util import LooseVersion, VersionError
import plotly
import panel as pn
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
import panel as pn
import panel.models.plotly # noqa

@philippjfr
Copy link
Member

Looks like a good start. Will probably have to add something to either the extension itself or PlotlyRenderer.load_nb to load the appropriate parts of the extension.

@jonmmease
Copy link
Collaborator Author

Superseded by #3850

@jonmmease jonmmease closed this Jul 24, 2019
@jonmmease jonmmease deleted the plotly_panel branch October 3, 2019 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants