Skip to content

Plotly Fails to plot on EMR Notebook #2137

@ndolev

Description

@ndolev

Hi,

I have an AWS EMR Notebook attached to an EMR cluster running PySpark. If I try the following:

import plotly.graph_objects as go
H = [10,20,30,40,50,60]
bins= [1,2,3,4,5,6]
fig = go.Figure()
fig.add_trace(
    go.Scattergl(
        x = bins[:-1],
        y = H,
        mode = 'markers',
        marker = dict(
            line = dict(
                width = 1,
                color = 'DarkSlateGrey'))))
fig.show()

I receive the following error:

llegal character ((CTRL-CHAR, code 27)): only regular white space (\r, \n, \t) is allowed between tokens at [Source: Getting http://127.0.0.1:35375/; line: 1, column: 2]

The plotly version is 4.5.0.

Any idea what the problem is?

Best.
Noah

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions