question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Widgets in offline mode

See original GitHub issue

Hi, is it possible to create a plotly widget in offline mode? I am basically trying to get something like, say: iplot([{"x": [1, 2, 3], "y": [3, 1, 6]}]) to display in an IPython widget. I see that plotly has support for widgets via the GraphWidget and I was wondering if I can basically nest a plotly widget in one of my widgets.

I learned about this from this post by @chriddyp. The example notebooks in the post are not reachable and I presume they won’t be using offline graphs.

Any help would be greatly appreciated! Thanks 😃

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
aggFTWcommented, Dec 16, 2015

What do you want the code to do @avishapiro? If you just want to display the output and then draw on it, you’d do what’s posted above:

        import ipywidgets as widgets
        from IPython.display import display
        out = widgets.Output()
        display(out)

        with out:
            print('prints to output widget')"""

where they key thing to know is to call display(out) before with out:

0reactions
avishapirocommented, Dec 21, 2015

Thanks @aggFTW . I forgot to switch my code back to offline mode. I confused what I aliased as iplot with what you did. My offline code now works. I’ll have to work on the online version. Since IPython has changed a lot over the year, many online examples no longer work, especially involving widgets.

Read more comments on GitHub >

github_iconTop Results From Across the Web

widgets not working in offline mode - Jotform
As far as I know, all widgets should be available offline. Looking forward for your response.
Read more >
Chat widgets: online & offline status explained - Help Center
When you embed a chat widget on a page, it will display as either online or offline: Online: in this mode, the widget...
Read more >
Offline Mode | TouchKit | Vaadin 7 Docs
The offline UI is included in the widget set of the regular server-side UI and stored in the browser cache. By providing a...
Read more >
How to use Offline Data - Whatagraph Help Center
Go to your report's editing mode and select "Offline Data" from the widget dropdown menu. Step 2. Select one of the widget types...
Read more >
Managing offline form settings - Zendesk help
When your widget is offline, visitors can leave a message with their contact information in the offline form.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found