-
Notifications
You must be signed in to change notification settings - Fork 68
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
[FIX, TEST] Fix create_comm in ThebeManager (reopening PR#311) #330
Conversation
I'd like to get this in the 0.6.0 release. |
Is there an example of firing up the Jupyterserver yet? |
I guess there isn't. I'm not seeing it anywhere. |
There is this in the top level of the repo: https://github.com/executablebooks/thebe/blob/master/jupyter-server.js |
We can release a minor version after we fix the test?
It was added in #257, I'll play around later to see if I could figure out how to get it to work. I'm not so well-versed in Javascript though so any advice is appreciated. |
Yes. |
This reverts commit 4f09ba2.
c6251a3
to
0780732
Compare
If we used a local Jupyter server, this particular test requires the server to have the bqplot package since it loads Thebe. I'm not sure if JupyterServer allows for custom images/packages to be installed with the server. Another way to test that @narrator0 and I were considering was to add a unit test instead, but we don't think that suits this PR since Another idea: creating a local Binder service (in a machine or Docker container) for testing, which would solve the package problem, while avoiding mybinder.org. But this may also lead to timeout issues. We still think that an integration test is the best way to test this kind of logic out though in practice. |
0780732
to
b230fe9
Compare
b230fe9
to
0e65862
Compare
@narrator0 extended the timeouts for Puppeteer (which were causing the errors in the first place) and committed it to this PR. |
@moorepants I think we didn't have this fix in |
It's not in release 0.6.0 since no changes relating to this issue got merged. There's not a clear way on how we should approach testing without timeouts (although we did extend the Puppeteer timeout issue in this PR, which allowed the tests to pass this time). Maybe we could merge the change in without the test (the change in function name is documented here), and open another PR with the test? |
Yes, this is fine with me. |
Will add this to another PR, since the state of having a local Jupyter server running for tests is unknown.
7edd56d
to
d267dd3
Compare
I'm sorry for the delay. I've removed the previous e2e test and HTML page for the bqplot to work. The commit history probably looks a bit messy right now, please let me know if you would like for me to clean it up! |
@sandertyu, @mandeepika, @TimStewartJ, @pmackle can you all verify that this works manually. Testing that each example still works in the docs for thebe would give us some sense of whether this breaks anything. I still haven't seen any confirmation on that. Thanks. Once confirmed here that it works and doesn't seem to break anything, I'll merge. |
bqplot completely fails to display using the same repository and code as on the example page; Ipyleaflet is similarly broken; All other widgets besides plotly (see below) fail with similar errors using the exact repositories from the Thebe example pages. The common theme is that Plotly fails both in Thebe development version with a slightly different error. I also saw it fail on the example page itself, but it's working now (???) and I didn't screenshot it. The error was same as below though; Furthermore, I am testing this with Thebe 0.6.0 rather than 0.5.1 which I believe this PR was originally built on (??). |
In my testing, I got results equivalent to the docs as long as I put the required scripts in the html I used for testing. When I didn't include these scripts, I got errors similar to what Noah's, leading me to believe that he simply forgot to include these scripts in testing. |
Tim is right, I forgot to load the proper javascript libraries in I've tested bqplot now, and the buttons do not seem to work as this fix was intended to do. |
Ok, both have tested this and we find it working. So merging. Thanks! |
Reverts the commit, "Revert "Fix create_comm in ThebeManager"". This reverts commit 4f09ba2 (PR #329).
This is a reopening of PR #311 to bring up a local Jupyter server that was suggested, rather than using an external Binder session.