Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter Lab #58

Open
romesco opened this issue Feb 22, 2020 · 0 comments
Open

Jupyter Lab #58

romesco opened this issue Feb 22, 2020 · 0 comments

Comments

@romesco
Copy link

romesco commented Feb 22, 2020

The examples I've tried are running just fine in a classic jupyter notebook server, but fail to dynamically update in jupyter lab.

One testable instance to reproduce the issue is the quickstart:

import tensorwatch as tw
import time

# streams will be stored in test.log file
w = tw.Watcher(filename='test.log')

# create a stream for logging
s = w.create_stream(name='metric1')

# generate Jupyter Notebook to view real-time streams
w.make_notebook()

for i in range(1000):
    # write x,y pair we want to log
    s.write((i, i*i))

    time.sleep(1)

After making the change in the autogenerated test.ipynb: %matplotlib notebook -> %matplotlib inline, a plot is drawn upon running the cells but this plot remains static unless it is refreshed (re-run the cell manually).

I know this is somewhat due to a difference in how the classic notebook handles inline content vs. lab, but I'm not able to determine the changes necessary to accommodate lab.

I noticed this file: https://github.com/microsoft/tensorwatch/blob/master/install_jupyterlab.bat, but since there isn't much context for it, I am wondering if there's been an effort to get streams plotting in jupyter lab.

Appreciate any insights!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant