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 interact plots do not handle smc-blob images (sync issue) #486

Closed
haraldschilly opened this issue Mar 25, 2016 · 2 comments
Closed

Comments

@haraldschilly
Copy link
Contributor

this is a fallout of sync2:

  1. in an ipynb worksheet, enter this code in a cell:

    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.

  2. Then evaluate the cell in both windows

  3. 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.

@williamstein 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
@williamstein
Copy link
Contributor

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.

@williamstein
Copy link
Contributor

Closing in favor of #1930. This is just going to be a test case.

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

No branches or pull requests

2 participants