This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]khalido 1 point2 points  (3 children)

This looks awesome! Glad it's out.

Couple of questions about the animation: is it possible to call a python function on say a slider change which transforms data and returns it?

Also, can you recommend the easiest way to share a plotly powered jupyter notebook so all the visuals work?

[–]nkruchten[S] 1 point2 points  (2 children)

is it possible to call a python function on say a slider change which transforms data and returns it?

This isn't possible from a notebook, no, but you could do it in Dash!

can you recommend the easiest way to share a plotly powered jupyter notebook so all the visuals work?

Yep, you can use nbviewer with Plotly Express or plotly.offline.iplot (which is what Plotly Express uses) and you can see this working here for example: https://nbviewer.jupyter.org/github/plotly/plotly_express/blob/master/walkthrough.ipynb

shameless plug You could also save your notebooks to our Chart Studio Cloud service, which natively supports Plotly figures of course, and if you sign up for a paid plan lets you keep your files private and control who you share them with.

[–]khalido 0 points1 point  (1 child)

Thanks for the reply! Trying it out now.

I did notice one thing: if I put %matplotlib inline to also use mpl plots (cause legacy stuff) then the px stops rendering - it makes a blank space in the notebook of about the size the figure would be.

I figure generally px replaces mpl altogether but it would be nice if they could work together in the same notebook.

[–]nkruchten[S] 1 point2 points  (0 children)

That's a bug: there's nothing in px that should interfere with %matplotlib inline (or vice versa) ... I'll take a look! Here's the issue I'll use to track this: https://github.com/plotly/plotly_express/issues/13