You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from ipywidgets import *
import matplotlib.pyplot as plt
%matplotlib inline
@interact
def f(k = (-10, 10)):
plt.plot([k*x + 2 for x in range(-20, 20)])
and open up this worksheet in two windows.
Then evaluate the cell in both windows
move the slider on both sides an watch the console for errors like this:
Uncaught (in promise) Error: Could not determine where the display message was from. Widget will not be displayed(…)
data:image/png;base64,smc-blob::7dd5028c-42ee-4700-8bd7-e9b6df7dd8c9 Failed to load resource: net::ERR_INVALID_URL
which seems like there is yet another mechanism at play, that tries to update the resulting plot without knowing that it is in SMC land.
The text was updated successfully, but these errors were encountered:
williamstein
changed the title
jupyter sync2 interact plots do not handle smc-blob images
jupyter interact plots do not handle smc-blob images (sync issue)
Sep 23, 2016
The problem is still here. To fix will need to learn the message format that is used for interact (probably via some console.logs) and probably just somehow completely ignore them from the point of view of sync. Not sure if this will be easy or not.
this is a fallout of sync2:
in an ipynb worksheet, enter this code in a cell:
and open up this worksheet in two windows.
Then evaluate the cell in both windows
move the slider on both sides an watch the console for errors like this:
which seems like there is yet another mechanism at play, that tries to update the resulting plot without knowing that it is in SMC land.
The text was updated successfully, but these errors were encountered: