# Python 3d Annotation Example Not Working

**URL:** <https://community.plotly.com/t/python-3d-annotation-example-not-working/5245>\
**Category:** 📊 Plotly Python\
**Created:** [August 5, 2017, 2:11pm UTC](https://community.plotly.com/t/python-3d-annotation-example-not-working/5245 "2017-08-05T14:11:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuart](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@stuart](https://community.plotly.com/u/stuart)\
**Post date:** [August 5, 2017, 2:11pm UTC](https://community.plotly.com/t/python-3d-annotation-example-not-working/5245/1 "2017-08-05T14:11:52Z")

</div>

I am trying to annotate a 3d surface plot using plotly for python. However, the example provided [here](https://plot.ly/python/text-and-annotations/#3d-annotations) does not work for me. When I try to run it I get an error informing me that:

> ‘annotations’ is not allowed in ‘scene’

And that:

> Valid attributes for ‘scene’ at path [‘scene’] under parents [‘layout’]:
> 
> ```
> ['aspectmode', 'aspectratio', 'bgcolor', 'camera', 'cameraposition',
> 'domain', 'dragmode', 'hovermode', 'xaxis', 'yaxis', 'zaxis']
> 
> ```

Has the method for annotating 3d plots changed?

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [August 5, 2017, 6:40pm UTC](https://community.plotly.com/t/python-3d-annotation-example-not-working/5245/2 "2017-08-05T18:40:37Z")

</div>

Hey @stuart, it appears that you are running an old Plotly vesion. Install the latest one with:  
`pip install plotly --upgrade`  
and the 3d annotation example will work fine.
