Razzle
Razzle
SSolara
Created by Razzle on 4/15/2024 in #questions-issues
Citing solara
Hello! This may be a bit of an odd request, but I'm interested in citing solara. Some popular python packages, such as networkx and mesa provide BibTex citations for the packages. Is anything like this available for solara?
1 replies
SSolara
Created by Razzle on 4/3/2024 in #questions-issues
Running a file vs running a module
Hello! I am trying to get solara up and running for use with mesa but am having some issues. I structured my code as a python package and would like to be able to run solara run my-package (or even better, just my-package) in the cli to start the server. Currently, running solara run __main__.py works, but for some reason running solara run my-package does not. Adding a print statement to __main__.py, I can see it being printed but solara does not appear to be able to find the route:
Page not found by Solara router
Page not found by Solara router
My __main__.py looks like this:
from mesa.experimental import JupyterViz

print("Hello")

page = JupyterViz(
MyModel,
model_params,
measures=[],
name="Test Model",
agent_portrayal=agent_portrayal,
)
from mesa.experimental import JupyterViz

print("Hello")

page = JupyterViz(
MyModel,
model_params,
measures=[],
name="Test Model",
agent_portrayal=agent_portrayal,
)
Is there a way to just "run" the page, similar to Flask's app.run() and if not, how can I make the solara CLI tool pick up the page even when running the module instead of the __main__.py directly? Thanks
6 replies