Skip to content

Candlestick chart fails to render on Google Colab #3309

@miohtama

Description

@miohtama

I am rendering Plotly Candlestick charts

  • The charts render locally on the Jupyter server and PyCharm

  • The chart does not render on Google Colab

My rendering code

import plotly.graph_objects as go
from plotly.offline import iplot

fig = go.Figure(data=[go.Candlestick(x=october['timestamp'],
                open=october['open'],
                high=october['high'],
                low=october['low'],
                close=october['close'])])
# Tried both methods
# fig.show()
iplot(fig)

Rendered locally:

image

Rendered on Google Colab:

image

The notebook source: https://github.com/miohtama/capitalgram-onchain-dex-quant-data/blob/master/docs/source/examples/plotting.ipynb

The Google Colab link: https://colab.research.google.com/github/miohtama/capitalgram-onchain-dex-quant-data/blob/master/docs/source/examples/plotting.ipynb

My questions are

  • How to debug

  • How to workaround if possible (happy to switch to Binder as the free notebook provider if it helps)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions