highchart.py 383 B

12345678910
  1. from .. import optional_features
  2. try:
  3. from nicegui_highcharts import highchart
  4. optional_features.register('highcharts')
  5. __all__ = ['highchart']
  6. except ImportError:
  7. class highchart: # type: ignore
  8. def __init__(self, *args, **kwargs) -> None:
  9. raise NotImplementedError('Highcharts is not installed. Please run `pip install nicegui[highcharts]`.')