S
Solara2mo ago
sujith

error-empty page after execution

import solara @solara.component def Page(): # Define a reactive variable value = solara.use_reactive(50) # Define the layout and widgets with solara.Column(): solara.SliderInt("Adjust the value", value=value, min=0, max=100) solara.Text(f"The current value is: {value.value}") tried to run this code in vscode PS C:\Users\ZG656CG\OneDrive - EY\Desktop\jj> solara run sol.py
No description
9 Replies
rob-vh
rob-vh2mo ago
whereas in py.cafe it works fine
PyCafe
Playground for Python web frameworks. Run and edit Python code snippets for web frameworks in a web browser.
Helleeni
Helleeni2mo ago
Hi, I tried today a fresh install with "solara[assets]" (with conda). I'm in Windows 10. The script is this one from the Solara pages: https://solara.dev/documentation/getting_started "First Script". It shows a blank page and developer consol on browser throws errors: "Failed to load resource: the server responded with a status fonts.ccs:1 of 404 (Not Found). The same results while doing a fresh install with python 3.12 and solara 1.37.1. Nothing is rendered with the script "First Script". The develeper console gives error messages like: "Failed to load resource: the server responded with a status of 404 (not found) fonts.ccs:1, solara-vuetify-app8.js:1 etc. etc.
sujith
sujith2mo ago
where are you running it? vs code or jupyter notebook?
Helleeni
Helleeni2mo ago
from the command line (miniconda) solara run solara_test.py I tried a new fresh install python 3.12 and solara but with no effect. Also tried solara versions 1.35.0 to 1.37.1 but none of those works. I have a working environment with solara 1.22.0 that I have been trying to update. That still works as always. The new environment seems to work in Jupyter Lab (python 3.12 and solare 1.37.1). But not from command line.
sujith
sujith2mo ago
yes
Helleeni
Helleeni2mo ago
Any suggestion how to proceed. I need to be able to run the script from the command line (as I've made the application available in the intranet).
Helleeni
Helleeni2mo ago
Edit: Tried exact the same thing on MacOS Sonoma 14.1.1 and Chrome Browser - works as expected. So my problem seems to be related to my Windows environment. But still appreciate if anyone has any advice on what might be the problem in Windows. Opened a discussion item in Github for this as well: https://github.com/widgetti/solara/discussions/736
GitHub
Running solara from command line results in empty page · widgetti s...
Hi, I'm trying to upgrade from solara 1.22.0 but with no success. The environment with 1.22.0 keeps working OK, but I can't make the new environment work. I did a clean install in a new con...
Helleeni
Helleeni2mo ago
Edit 19th Aug 2024: Apparently the app tries to load a files from: "/_solara/cdn/font etc. etc." but can't find any of them. I can't figure out where in my computer local server root directory is so can't check if they are there.
Helleeni
Helleeni2mo ago
This problem is potentially linked to open issue in Solara GitHub https://github.com/widgetti/solara/issues/490#issuecomment-2298184024
GitHub
Opening localhost shows a blank page · Issue #490 · widgetti/solara
I have only started using solara for experimenting purpose and I have created a very basic app and named it main.py. Hoever when I do a solara run main.py it redirects me to my localhost site but u...
Want results from more Discord servers?
Add your server