From 791e94bb2c8cf4283d809186c39bda3236dfe8a8 Mon Sep 17 00:00:00 2001 From: grootstebozewolf Date: Tue, 20 Oct 2020 12:54:04 +0200 Subject: [PATCH 1/2] Update _base_renderers.py Patch for IPython version 7.16.1 display_html AttributeError --- packages/python/plotly/plotly/io/_base_renderers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/python/plotly/plotly/io/_base_renderers.py b/packages/python/plotly/plotly/io/_base_renderers.py index 10226ad71e0..82c6160d5db 100644 --- a/packages/python/plotly/plotly/io/_base_renderers.py +++ b/packages/python/plotly/plotly/io/_base_renderers.py @@ -323,8 +323,7 @@ def activate(self): win_config=_window_plotly_config, mathjax_config=_mathjax_config, ) - - ipython_display.display_html(script, raw=True) + ipython_display.display(ipython_display.HTML(script)) def to_mimebundle(self, fig_dict): From 81f3dc097cc7a831dd1f9cf173991369f68043ac Mon Sep 17 00:00:00 2001 From: grootstebozewolf Date: Tue, 20 Oct 2020 13:01:46 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a79a6b51985..b2287afc5bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Updated Plotly.js to version 1.57.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.57.0/CHANGELOG.md) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. +### Fixed + +- Patch for offline rendering in IPython notebook. + ## [4.11.0] - 2020-10-01 ### Updated