IBM Support

"Plotly" produced blank graph in Jupyter Lab IDE.

Question & Answer


Question

Following code is working correctly to display graph in Jupyter Notebook. However, if in Jupyter Lab, it produced blank graph instead.
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()
Could you tell me how to allow Jupyter Lab to display Plotly graph correctly?

[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHE3N","label":"IBM Watson Studio Premium for IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m50000000L1dGAAS","label":"Analyze-\u003EModels-\u003ENotebooks"}],"ARM Case Number":"TS011252507","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Watson Studio Premium for IBM Cloud Pak for Data

Component:
Analyze->Models->Notebooks

Software version:
All Versions

Document number:
6851811

Modified date:
27 December 2022

UID

ibm16851811

Manage My Notification Subscriptions