-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
plot
method in GraphWidget
#192
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
Conversation
"`dict`-like or `list`-like.") | ||
if validate_figure: | ||
try: | ||
validate(figure, obj_type='Figure') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that darn tools.validate
. if that didn't exist, i woulda placed this function in utils.py
since i can't imagine anyone actually needing it.
### Changelog | ||
|
||
- 1.6.7 | ||
Added `plot` method to `plotly.widgets.GraphWidget` for easy-to-use client-side graphing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reasons for not using GitHub releases instead ?
👍 |
yeah, you're right, releases looks a bit nicer (e.g. https://github.com/ipython/ipython/releases) |
@@ -247,6 +246,18 @@ def message_handler(widget, ranges): | ||
""" | ||
self._handle_registration('zoom', callback, remove) | ||
|
||
def plot(self, figure_or_data, validate=True): | ||
"""Plot figure_or_data in the Plotly graph. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind throwing in a couple extra lines for docs describing the args?
looking good, just a couple notes in there from me |
`plot` method in `GraphWidget`
Usage: http://nbviewer.ipython.org/gist/chriddyp/e8c21827120220791684
@theengineear