#!/usr/bin/env python
# coding: utf-8
# #### New to Plotly?
# Plotly's Python library is free and open source! [Get started](https://plotly.com/python/getting-started/) by downloading the client and [reading the primer](https://plotly.com/python/getting-started/).
# You can set up Plotly to work in [online](https://plotly.com/python/getting-started/#initialization-for-online-plotting) or [offline](https://plotly.com/python/getting-started/#initialization-for-offline-plotting) mode, or in [jupyter notebooks](https://plotly.com/python/getting-started/#start-plotting-online).
# We also have a quick-reference [cheatsheet](https://images.plot.ly/plotly-documentation/images/python_cheat_sheet.pdf) (new!) to help you get started!
# #### Create a New View for Output
# Display a FigureWidget and then create a new window to display it in so that you can scroll through your code but still keep an eye on what you're doing.
#
#
# #### View Live Updates
#
# With the output view it is easy to take full advantage of FigureWidgets new impertive-style graph updates since you can see your code and your graph at the same time.
#
#
#
# #### Reference
# See [these Jupyter notebooks](https://github.com/jonmmease/plotly_ipywidget_notebooks) for even more FigureWidget examples.
# In[1]:
from IPython.display import display, HTML
display(HTML(''))
display(HTML(''))
get_ipython().system(' pip install git+https://github.com/plotly/publisher.git --upgrade')
import publisher
publisher.publish(
'jupyter-lab-tools.ipynb', 'python/jupyter-lab-tools/', 'IPython Widgets | plotly',
'Using Plotly FigureWidgets with Jupyter Lab',
title = 'Jupyter Lab with FigureWidget',
name = 'Jupyter Lab with FigureWidget',
has_thumbnail='true', thumbnail='thumbnail/figurewidget-jupyterlab.png',
language='python',
display_as='chart_events', order=2)
# In[ ]: