Blank output instead of plots with Google AI platform


I’ve created new notebook with Google AI platform “TensorFlow 1.14” and tried plotly code with jupiter notebook. Python 2 and Python 3.

Blank output instead of plots.

import plotly.graph_objects as go
fig = go.Figure(data=go.Bar(y=[2, 3, 1]))

I tried with chrome and safari browsers.

I share a solution found here. This function fix the problem:

def configure_plotly_browser_state():
            <script src="/static/components/requirejs/require.js"></script>
                    paths: {
                        base: '/static/base',
                        plotly: '',

You have just to call it once in the notebook.