S
Solara•15mo ago
mariobuikhuizen

Which version of lab running pip install

Which version of lab? running !pip install will install it in the kernel environment, if the lab server is is in a different environment, it still not installed there if you're in the scenario of different environments for server and kernel.
15 Replies
trent
trent•15mo ago
Thanks for the help @mariobuikhuizen . Running JupyterLab 3.2.8. It loads the solara package fine, so I'm not getting the impression it's an kernel environment thing...
No description
trent
trent•15mo ago
Solara is 1.19.0, and if it helps, my current environment - https://justpaste.it/b5eev
trent
trent•15mo ago
Ok, pretty sure it's due to IPv6 being disabled. I'm working in a container that's set up with my employer, so I'll have to work with them on it. Thanks again for the help!
No description
mariobuikhuizen
mariobuikhuizen•15mo ago
So, the jupyter server runs in a different environment? You can also use this snippet as a minimal test. This has the least other stuff that can go wrong:
import ipywidgets
ipywidgets.Button(description="hello")
import ipywidgets
ipywidgets.Button(description="hello")
trent
trent•15mo ago
Well that worked! I'm not sure where the jupyter server is running now that I actually think about it - I know the service we use provides me a ubuntu docker container that provides access to the terminal, jupyterlab, and vs code. I also know I cannot enable IPv6 from within the container.
No description
trent
trent•15mo ago
We have a team meeting on thursday where I'm going to bring all this up, solara would be pretty sweet to get working on the core here Wouldn't have to figure out how to host streamlit or rshiny (or solara) apps, just run solara in the notebooks and be all set
mariobuikhuizen
mariobuikhuizen•15mo ago
Can still be ipywidgets is installed in the environment the jupyter-server runs in Does this run?: import plotly.express as px fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) fig.show()
trent
trent•15mo ago
Well I don't know what changed, but Page() is working now haha. The plotly figure doesn't however...
No description
mariobuikhuizen
mariobuikhuizen•15mo ago
Awesome! Maybe you need a refresh of the page for the plotly frontend to load
trent
trent•15mo ago
I'll keep tinkering, great to know it can work! Thanks again!
mariobuikhuizen
mariobuikhuizen•15mo ago
My pleasure, but you "fixed" it yourself 😉
trent
trent•15mo ago
Oh wow, I was just restarting the kernel. That's exactly it, I refreshed the whole thing and it works. So awesome!
No description
mariobuikhuizen
mariobuikhuizen•15mo ago
Nice!
trent
trent•15mo ago
Haha thanks, back in business!
MaartenBreddels
MaartenBreddels•15mo ago
good to read a story that ends well! 🙂 @mariobuikhuizen still strange this happens, i thought after import solara we check many things..
Want results from more Discord servers?
Add your server