Skip to content

Unicode symbols in jupyter notebook plots (plotly3) #1289

Closed
@Gorfar

Description

@Gorfar

Hello!

I am using plotly3 for plots in Jupyter notebook. If I want to add an unicode symbol in an axis title it doesn't work, however, it worked in the plotly2.

In the following code

import plotly.graph_objs as go
layout=go.Layout()
layout.xaxis.title = u"μ"
fig = go.FigureWidget(layout=layout)
fig

I get the error " 'ascii' codec can't encode character u'\u03bc' in position 0: ordinal not in range(128)"

I use anaconda environment on OpenSuse Leap 42.3
conda=4.5.11
ipykernel=4.9.0
ipython=5.8.0
plotly=3.4.1
plotly-orca=1.1.1
python=2.7.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions