Adding a Notebook widget

If IBM® Cognos® Analytics for Jupyter Notebook is enabled in IBM Cognos Analytics, you can use the Notebook widget to add notebooks to a dashboard or story.

Procedure

  1. Click the Widgets icon Widgets icon.
    If you don't see the Widgets icon, click the Edit icon Edit iconfirst.
  2. To add a notebook from the Widgets tab, complete the following steps:
    1. If you want to position the widget yourself, drag the Notebook icon notebook icon to the canvas. If you want the widget to fill the next available pane in the template, click the Notebook icon.
    2. From the Notebook widget, click Select a notebook.
    3. Select a notebook and click Open.
    4. From the available cells, select one notebook cell to include in your dashboard.
  3. To see when a Notebook widget was last refreshed, hover your cursor over the time stamp icon Timestamp icon.
  4. To hide the time stamp icon Timestamp icon from the Notebook widget, complete the following steps:
    1. Click the Notebook widget, click the Properties icon Properties icon, and then click Selection.
    2. Click the Show timestamp toggle.
  5. To select a different notebook cell for a Notebook widget, select the widget, and click the Edit widget icon Edit widget icon from the widget toolbar.

    Important: To display charts in dashboards by using the plotly package, you must set the package to plot in offline mode with the following command:
    from plotly.offline import init_notebook_mode
    init_notebook_mode()