Ask any question about QuantStack projects: xtensor, xeus, voila, Jupyter widgets, mamba
Nice article! Congrats for all the work.
I saw there is a new frontend for Quetz. I guess it's this repo https://github.com/mamba-org/quetz-frontend? Is it still WIP or would you recommend trying to use it?
The article also mentions a plugin to convert PyPI wheels to conda packages on the fly. I'd be interested in that. Where can I find that plugin?
hello guys, I am baffled. I have coded a pretty complex jupyer notebook involving various interconnected widgets and I thought I well understood how ipywidget worked. I might have found a bug though as today I am trying to simply run the following code:
out=widgets.Output()
dfa=pd.DataFrame({'x':[1,2,3],'y':[1,2,3]})
with out:
out.clear_output(wait=True)
print('ciao')
fig=px.scatter(dfa,x='x',y='y', width=800, height=400 )
fig.show()
out
And the output cell is displaying nothing. I am pretty sure that it should display the plotly express plot in fig. Instead it only display the 'ciao' being printed. The really weird thing is that I am using the same exact kernel with very similar code for my other complex applications involving multiple boxes and observes codes and everything is working fine. I don't understand what's wrong.
just
fig=px.scatter(dfa,x='x',y='y', width=800, height=400 )
fig.show()
shows an empty area
require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:1958 GET http://localhost:8888/static/plotly.js?v=20220106094745 net::ERR_ABORTED 404 (Not Found)
localhost
in the url address with the domain address or ip number of the host machine. When I swap localhost
with the ip address it doesn't connect on either the local or remote machines. When I switched back to Voila v0.2.x, it all worked as expected. Any ideas?
python=3.9
and then it's as fast as always
UPDATE: Running more test using the old code (that works) and comparing it with the code that i linked previously I noticed that if I stack two cells one with the form :
#CELL 1
import plotly.express as px
import pandas as pd
import ipywidgets as widgets
out=widgets.Output()
dfa=pd.DataFrame({'x':[1,2,3],'y':[1,2,3]})
with out:
out.clear_output(wait=True)
print('ciao')
fig=px.scatter(dfa,x='x',y='y', width=800, height=400 )
fig.show()
out
and one with the form :
#CELL 2
with out:
out.clear_output(wait=True)
print('ciao')
fig=px.scatter(dfa,x='x',y='y', width=800, height=400 )
fig.show()
out
A weird thing happens. If I run CELL1 i get an empty output, then I run CELL2 and i still get an empty output, but the output from CELL1 now shows the plot from CELL2.