Title: plotly.offline.iplot - Option to save to a file and embed link in notebook · Issue #1469 · plotly/plotly.py · GitHub
Open Graph Title: plotly.offline.iplot - Option to save to a file and embed link in notebook · Issue #1469 · plotly/plotly.py
X Title: plotly.offline.iplot - Option to save to a file and embed link in notebook · Issue #1469 · plotly/plotly.py
Description: Dear all The following use case: I use jupyter with plotly. In some notebooks we plot large amount of data > 1e6 points. Embedding the plot directly in the notebook causes the notebooks to get very large > 100Mb. This causes issues with ...
Open Graph Description: Dear all The following use case: I use jupyter with plotly. In some notebooks we plot large amount of data > 1e6 points. Embedding the plot directly in the notebook causes the notebooks to get very...
X Description: Dear all The following use case: I use jupyter with plotly. In some notebooks we plot large amount of data > 1e6 points. Embedding the plot directly in the notebook causes the notebooks to get v...
Opengraph URL: https://github.com/plotly/plotly.py/issues/1469
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plotly.offline.iplot - Option to save to a file and embed link in notebook","articleBody":"Dear all\r\n\r\nThe following use case:\r\nI use jupyter with plotly. In some notebooks we plot large amount of data \u003e 1e6 points. Embedding the plot directly in the notebook causes the notebooks to get very large \u003e 100Mb. \r\nThis causes issues with \r\n- saving in jupyter [Jupyter: Large notebook fails to save](https://github.com/jupyter/notebook/issues/650)\r\n- saving incremental progress because the files are so huge \r\n- with version control of the notebooks, since the diffs are huge.\r\n\r\nThe following solution seems to solve these issues for me:\r\n```\r\nfilename = 'results/foo.html'\r\nplotly.offline.plot(fig, filename=filename)\r\nIPython.display.display(IPython.display.IFrame(src=filename, width=1200, height=800))\r\n```\r\n\r\nThis saves the picture to an external file and embeds the contents of this file in Jupyter, therefore bypassing all issues mentioned above. Since googling showed that other users sometimes have similar issues maybe it is a good idea to add the above code to plotly.offline.iplot and make it available via a option?\r\n\r\nBest regards\r\nNikolai","author":{"url":"https://github.com/Nikolai-Hlubek","@type":"Person","name":"Nikolai-Hlubek"},"datePublished":"2019-03-19T09:12:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1469/plotly.py/issues/1469"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e04a07f2-ba30-0fcc-45fb-88ea435e4500 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBBA:22DC68:AD49F4:FB005D:6A574785 |
| html-safe-nonce | c58079a2ae8db3ecb0255dfcf001bbd3e69619f35f2fd7f0b0cc400a4af37f57 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkJBOjIyREM2ODpBRDQ5RjQ6RkIwMDVEOjZBNTc0Nzg1IiwidmlzaXRvcl9pZCI6IjUwNzUyNzkwMDQ4MjA3ODUwMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6a513ed2da1b29f310c2cd7fe175b2fd52ef1f485fc4d8b8578e31a58e8c0b65 |
| hovercard-subject-tag | issue:422617074 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.py/1469/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dea04a1f7d04ff70e938dfbb163b196f0315751239a469e36663665668d46ed8/plotly/plotly.py/issues/1469 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dea04a1f7d04ff70e938dfbb163b196f0315751239a469e36663665668d46ed8/plotly/plotly.py/issues/1469 |
| og:image:alt | Dear all The following use case: I use jupyter with plotly. In some notebooks we plot large amount of data > 1e6 points. Embedding the plot directly in the notebook causes the notebooks to get very... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Nikolai-Hlubek |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579099 |
| octolytics-dimension-repository_nwo | plotly/plotly.py |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579099 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.py |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 602250ea3b6dd8302a7220ef98adb828dbc807e4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width