Description
Describe the bug
When I want to render a Highcharts-maps with command chart.display(), it works in Jupyter Lab but not in Jupyter notebook (in web browser). I got the error :
Something went wrong with the Highcharts.js script. It should have been automatically loaded, but it did not load for over 5 seconds. Check your internet connection, and then if the problem persists please reach out for support. (You can also check your browser's console log for more details.)
Detailed Error Message:
undefined is not a function (near '...Highcharts.mapChart...')
To Reproduce
Here as example, the code in python I wrote :
from highcharts_maps.chart import Chart
from highcharts_maps import constants
import geopandas as gpd
import numpy as np
df = gpd.read_file('https://raw.githubusercontent.com/gregoiredavid/france-geojson/master/departements-version-simplifiee.geojson')
df['value'] = np.random.randint(0,100,df.shape[0])
my_chart = Chart.from_geopandas(df, property_map = {
'id': 'code',
'name':'nom',
'value': 'value'
}, series_type = 'map')
my_chart.options.series[0].join_by = constants.EnforcedNull
my_chart.display()
Expected behavior
I would expect a graph to be displayed in the notebook
Your Environment:
- OS: Mac
- Python Version: 3.11
- Latests versions of HighCharts and HighCharts-maps (v1.5.1)