Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Graph_objs errors for 3d surface contour options

Hi, I’m trying to change default spikeline and contour behaviors as indicated at:

However, graph_objs in the current version at least, does not have a go.layout.scene attribute.

specifically
contours=go.surface.Contours(
x=go.surface.contours.X(
highlight=True,
highlightcolor="#41a7b3",
),
y=go.surface.contours.Y(highlight=False),
z=go.surface.contours.Z(highlight=False),
)

produces
AttributeError: module ‘plotly.graph_objs’ has no attribute ‘surface’

Has the object model changed? is this still possible to do?
Thanks!

Hi @datadrinkr, what version of plotly.py do you have installed?

import plotly
plotly.__version__

You’ll need at least version 3.0 for this example. If you have version 3 installed, please include the output of running pip list and conda list (if you use conda) in the terminal.

-Jon

I’m using 2.2.2
Thanks, I’ll try again after updating.