Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline Height of Plot no respected in SageMaker #1572

Closed
kbrostrom opened this issue May 22, 2019 · 2 comments
Closed

Offline Height of Plot no respected in SageMaker #1572

kbrostrom opened this issue May 22, 2019 · 2 comments
Labels
bug something broken
Milestone

Comments

@kbrostrom
Copy link

I'm trying to use plotly offline iplot in JupyterLab on AWS SageMaker. When I use offline iplot, the graph adjusts to the default cell output heigh of 360px instead of adjust the cell output size to the default graph height of 450px. When I try to set the height to a fixed height of 600px, the cell doesn't adjust and cuts off the bottom half of the graph.

I followed the instructions for installing all necessary widgets and extensions to work in JupyterLab. The following is my code.

`import plotly.offline as off
import plotly.graph_objs as go
import numpy as np

off.init_notebook_mode(connected=True)

trace = go.Heatmap(z=[[1, 20, 30, 50, 1], [20, 1, 60, 80, 30], [30, 60, 1, -10, 20]],
x=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
y=['Morning', 'Afternoon', 'Evening'])
data=[trace]
layout = go.Layout(title='Activity Heatmap')

f2 = go.Figure(data,layout)

two different ways to view f2

off.iplot(f2)
`
Here is a picture of my output

image

When I try to set the height manually to 600px in the layout, here is what I'm returned:

image

I've tried with both go.Figure and go.FigureWidget

@jonmmease
Copy link
Contributor

jonmmease commented May 23, 2019

Hi @kbrostrom,

Thanks for the report. I think this may be the same issue that's being addressed in #1571.

Would you be able to try out the dev build to see if it fixes the problem for you? You can install the dev build using pip with

$ pip install https://13265-14579099-gh.circle-artifacts.com/0/dist/plotly-3.9.0%2B7.ge9a6555f.tar.gz

Thanks!

@jonmmease jonmmease added the bug something broken label May 23, 2019
@jonmmease jonmmease added this to the v3.10 milestone May 29, 2019
@jonmmease
Copy link
Contributor

Fixed in #1571 and will be released in 3.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

2 participants