Open mwcraig opened 1 year ago
jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 Connection lost, reconnecting in 0 seconds. _reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 restart @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 336.9f709c2076672b1bfe2b.js?v=9f709c2076672b1bfe2b:1 Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason: Control comm was closed too early _loadFromKernel @ 336.9f709c2076672b1bfe2b.js?v=9f709c2076672b1bfe2b:1 jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 Connection lost, reconnecting in 0 seconds. _reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 Connection lost, reconnecting in 0 seconds. _reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 336.9f709c2076672b1bfe2b.js?v=9f709c2076672b1bfe2b:1 Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason: Control comm did not respond in time _loadFromKernel @ 336.9f709c2076672b1bfe2b.js?v=9f709c2076672b1bfe2b:1 jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 Connection lost, reconnecting in 0 seconds. _reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 Connection lost, reconnecting in 0 seconds. _reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 Connection lost, reconnecting in 0 seconds. _reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 Connection lost, reconnecting in 0 seconds. _reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 336.9f709c2076672b1bfe2b.js?v=9f709c2076672b1bfe2b:1 Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason: Control comm was closed too early _loadFromKernel @ 336.9f709c2076672b1bfe2b.js?v=9f709c2076672b1bfe2b:1 jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 Connection lost, reconnecting in 0 seconds. _reconnect @ jlab_core.fc632a0f38747f007842.js?v=fc632a0f38747f007842:2 336.9f709c2076672b1bfe2b.js?v=9f709c2076672b1bfe2b:1 Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason: Control comm was closed too early _loadFromKernel @ 336.9f709c2076672b1bfe2b.js?v=9f709c2076672b1bfe2b:1 DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/main.86df35f40da452ca6f22.js.map?v=86df35f40da452ca6f22: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/1142.074d125bb59f5a332666.js.map?v=074d125bb59f5a332666: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/1036.b407e23ec5843f2b574d.js.map?v=b407e23ec5843f2b574d: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/5096.96faf5ddac346a9ad9c3.js.map?v=96faf5ddac346a9ad9c3: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/6700.c96344a466d1896657bf.js.map?v=c96344a466d1896657bf: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/4155.784ca1752696680bf373.js.map?v=784ca1752696680bf373: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/1033.890eeae47460e241b1e9.js.map?v=890eeae47460e241b1e9: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/7294.f71c2889fedcd71bd1ee.js.map?v=f71c2889fedcd71bd1ee: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/4570.53adcb6f69939da383ff.js.map?v=53adcb6f69939da383ff: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/3935.4159b022aa6d82e44127.js.map?v=4159b022aa6d82e44127: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/9473.c9ce89a68fc11c32e958.js.map?v=c9ce89a68fc11c32e958: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/2719.e5ff90bc0606db87408f.js.map?v=e5ff90bc0606db87408f: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/7755.d506a1d9dadf30b1e490.js.map?v=d506a1d9dadf30b1e490: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/4631.96a143e70f005fef7b59.js.map?v=96a143e70f005fef7b59: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/2040.6489997c35a5d7b0b100.js.map?v=6489997c35a5d7b0b100: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/1057.a0608544097dd22a589e.js.map?v=a0608544097dd22a589e: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/3029.8636761a48c8422ce37f.js.map?v=8636761a48c8422ce37f: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/3502.c915d993b864739407e3.js.map?v=c915d993b864739407e3: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/4621.f542b785352c9afa6fef.js.map?v=f542b785352c9afa6fef: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/807.96166378e2efe232d81e.js.map?v=96166378e2efe232d81e: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/4151.fd7ca59b64f0adc97032.js.map?v=fd7ca59b64f0adc97032: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/1358.9ab4f57e8227ce75f427.js.map?v=9ab4f57e8227ce75f427: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/1249.cfa1d89695d227ee04f7.js.map?v=cfa1d89695d227ee04f7: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/911.0c08f040896753efc653.js.map?v=0c08f040896753efc653: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/126.1e2fb998804b27c72a3e.js.map?v=1e2fb998804b27c72a3e: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/466.239a0c009f33f1cb7cab.js.map?v=239a0c009f33f1cb7cab: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/3496.ecb0e7fcc54191234ae6.js.map?v=ecb0e7fcc54191234ae6: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/7796.53c158c42e7f9697953b.js.map?v=53c158c42e7f9697953b: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/4429.c4f083ef6b6e29345fd4.js.map?v=c4f083ef6b6e29345fd4: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/6080.39703b8cc7bd284ce1bd.js.map?v=39703b8cc7bd284ce1bd: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/714.d38baae8faccca175d4b.js.map?v=d38baae8faccca175d4b: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE DevTools failed to load source map: Could not load content for http://localhost:8888/static/lab/jlab_core.fc632a0f38747f007842.js.map?v=fc632a0f38747f007842: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
I'm having the same issue. Is this any current workaround?
I am also having the same issue. I did notice one thing that was not included in the bug report above, though to a more experienced person it may be obvious given the code. When the above snippet is run the value seems to change to 3 briefly before immediately reverting to 2 (causing a flickering in the slider). I saw this behavior the clearest with the following modifications to the above code:
sl = ipywidgets.IntSlider(min=0, max=1)
out = ipywidgets.Out()
def print_val(event):
with out:
print(f"Slider value changed to: {sl.value}")
sl.observe(print_val, 'value')
with out:
display(sl)
display(out)
with sl.hold_trait_notifications():
sl.min = 2
sl.max = 4
sl.value = 3
Which prints out:
Slider value changed to: 2
Slider value changed to: 3
Slider value changed to: 2
I only recently started using ipywidgets so I am not sure what could possibly be causing this last event, and why it only occurs if the slider was displayed prior to making the changes to min/max/value.
@hhoppe I think I may have found a workaround: if you change with s1.hold_trait_notifications():
to with s1.hold_sync(), s1.hold_trait_notifications():
it appears to give the desired behavior (value=3). Note: the order of hold_sync() and hold_trait_notifications() matters.
Description
A particular combination of commands in a single jupyter lab notebook cell results in the value of a widget not being set. This report is based on the code provided in #3206.
Reproduce
2
when the cell is done executing.I came upon this when checking to see whether #3206 has been fixed.
Expected behavior
The value of the slider should be
3
.Context
8.1.0
macOS 11.7.8
Troubleshoot Output
Command Line Output
If using JupyterLab
3.4.3
Installed Labextensions