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.
@JohanMabille I very much like this roadmap! Happy new year btw...
thanks :) Happy new year too!
Hi there, I am using voila to render a notebook in jupyterHub environement. I would like to create a kind of "Launcher" opening several tabs in chrome by clicking buttons. I have this code:
import ipyvuetify as vue
from ipywidgets import Output
from IPython.display import Javascript
b = vue.Btn(class_='mx-2 light-blue darken-1', color='primary',children=['open newspapers'])
out=Output()
def open_pages(widget, event, data):
with out:
print('clicked')
display(Javascript(f'window.open("https://www.lemonde.fr");'))
print('should have opened 1')
display(Javascript(f'window.open("https://www.nytimes.com");'))
print('should have opened 2')
b.on_event('click', open_pages)
display(vue.Layout(children=[b,out]))
only one tab is open, the first one, despite of the fact that the three print statements run and no error is given back.
Any idea how to solve this issue or where can be the error?