Skip to content

BUG: Conflict with Require.js in Exported HTML Versions of Jupyter Notebooks #66

@hcpchris

Description

@hcpchris

Steps to encounter the bug:

  1. Create a Jupyter Notebook using Highcharts for Python. The notebook should include the rendering of a chart via chart.display().
  2. Create a static HTML export of the notebook using either the Jupyter Notebook's Export functionality, or using the jupyter nbconvert terminal command.
  3. Open the file locally in your browser.
  4. The chart does not render.

However! When you remove the <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"/> from the HTML file produced by jupyter nbconvert, the chart renders correctly.

You can see this behavior in this JS Fiddle. When require.min.js is loaded from the CDN, the chart does not render. When it is removed from the CDN (in the Fiddle), the chart renders fine.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions