# Plotly.express in Sagemaker Studio

**URL:** <https://community.plotly.com/t/plotly-express-in-sagemaker-studio/62224>\
**Category:** 📊 Plotly Python\
**Tags:** question\
**Created:** [March 23, 2022, 8:40pm UTC](https://community.plotly.com/t/plotly-express-in-sagemaker-studio/62224 "2022-03-23T20:40:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akwol0323](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@akwol0323](https://community.plotly.com/u/akwol0323)\
**Post date:** [March 23, 2022, 8:40pm UTC](https://community.plotly.com/t/plotly-express-in-sagemaker-studio/62224/1 "2022-03-23T20:40:42Z")

</div>

Hi, I am curious to know if there are any known limitations to using plotly.express within an Amazon SageMaker Studio Jupyter notebook?

I am trying to create a 3D scatter plot based on below code and the process has been running for over an hour w/o error.

```auto
import plotly.express as px
from sklearn.decomposition import PCA 

pca=PCA(n_components=3)
X3D=pca.fit_transform(X)

X3D=pd.DataFrame(X3D,columns=['pca1','pca2','pca3'])
X3D['Class']=df['Class']

# We can change the frac value to reduce the points plotted 
samp=X3D.sample(frac=1)

fig = px.scatter_3d(samp, x='pca1', y='pca2', z='pca3',
              color='Class')
fig.show()

```
