| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This will immediately create a model on the javascript side when a widget is created. This means that, for example, a widget that only interacts with its model can work without "displaying" it.
|
Pinging @jdfreder for review. We talked about this last week. |
Sorry, something went wrong.
|
I just looked over the code, it's a small change and it looks good to me. I'll give it a quick test and we can wait to see what Travis thinks. |
Sorry, something went wrong.
|
Pinging @ellisonbg so he is aware of this change in behavior. |
Sorry, something went wrong.
|
Looks like a lot of the tests are failing because creating a widget now tries to open a comm, but TerminalInteractiveShell doesn't have comms. These seem more like failures in the tests than the code. The JS failures look like they might be linked to timeouts? I'm not sure. Can you look at these tests, @jdfreder (in your plentiful spare time :) |
Sorry, something went wrong.
|
Awesome, I think this makes sense, just have to figure out the tests. On Thu, Jul 17, 2014 at 12:58 PM, Jason Grout notifications@github.com
Brian E. Granger |
Sorry, something went wrong.
|
Honestly, I don't think the problem was with the tests, but the comm itself. I've opened a PR against this branch, let me know what you think. |
Sorry, something went wrong.
Don't register comm with comm_manager if comm_manager is undefined
|
@jdfreder: it looks like your change wasn't enough to satisfy Travis. |
Sorry, something went wrong.
|
This makes me sad, it passed on my local machine... One more PR coming your way, after I figure out what to do. |
Sorry, something went wrong.
|
Could you take a look at jasongrout#3 ? |
Sorry, something went wrong.
Check for null session in _publish_msg and _session_default
|
I merged your change. How do I restart the Travis tests? Edit: never mind, it appears they already restarted |
Sorry, something went wrong.
|
Any new commit (including a merge) will trigger a new test run on Travis. If you need to restart a test run on the same commit, one of us with push access to the repo has to do it. |
Sorry, something went wrong.
|
@jdfreder: Travis is happy! Thanks! |
Sorry, something went wrong.
Instead of automagically instantiating a comm when it is accessed, require a call to open(). This makes the comm attribute much less magical, and hopefully more understandable.
…/ipython into immediate-widget-comm
|
I think this is ready to go. |
Sorry, something went wrong.
|
👍 +1 |
Sorry, something went wrong.
|
@jasongrout the code here looks good, but I want to mention a couple things:
|
Sorry, something went wrong.
|
Since comm is now a trait of the widget, and the open call only does anything if comm is None, then I imagine that you can just pass the existing comm into the widget (IntSlider(comm=EXISTING_COMM)), and things will just work. It won't try to create a new comm, but will use the existing one. |
Sorry, something went wrong.
|
Assigned to @minrk for review. @jasongrout note this also needs a rebase. |
Sorry, something went wrong.
|
this might actually be superseded by Sylvain's pull requests dealing with widget lifetimes. Next week I'll work on reviewing his widget lifetime commits, and nagging you guys to look at them too 😄. |
Sorry, something went wrong.
|
Does he need to cherry-pick or reimplement the comm fix from here too? |
Sorry, something went wrong.
|
I cleaned up #6194. It has all the commits of this PR and a couple more. |
Sorry, something went wrong.
|
Great! Does that mean we should close this @jasongrout ? |
Sorry, something went wrong.
|
Yes, please. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This will immediately create a model on the javascript side when a widget is created. This means that, for example, a widget that only interacts with its model can work without "displaying" it.