ash1day / rbplotly

a Ruby visualization library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to render charts on JupyterLab

mrkn opened this issue · comments

rbplotly cannot render charts on JupyterLab even if jupyterlab/plotly-extension is installed.

The following message has been displayed on console:

[E 15:52:34.774 LabApp] Notebook JSON is invalid: Additional properties are not allowed ('source' was unexpected)

    Failed validating 'additionalProperties' in display_data:

    On instance['cells'][12]['outputs'][0]:
    {'data': {'text/html': '\n'
                           '  <script>\n'
                           "  requirejs.config({paths: { 'plotly': "
                           "['https://cdn...",
              'text/plain': '#<Plotly::Offline::HTML:0x00000000041ed710 '
                            '@id="a674fc2e-6241-48...'},
     'metadata': {},
     'output_type': 'display_data',
     'source': 'ruby'}