I create a script with solara create button and try to run it with solara run sol.py.
The second command fails with
File "/opt/homebrew/lib/python3.11/site-packages/solara/server/starlette.py", line 249, in root
content = server.read_root(request_path, root_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/solara/server/server.py", line 238, in read_root
nbextensions = get_nbextensions()
^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/solara/cache.py", line 95, in __call__
value = self.function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/solara/server/server.py", line 318, in get_nbextensions
load_extensions = jupytertools.get_config(paths, "notebook")["load_extensions"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'load_extensions'
It seems that the get_config call returns an empty dict because we are not inside a jupyter notebook.
I create a script with
solara create button
and try to run it withsolara run sol.py
.The second command fails with
It seems that the
get_config
call returns an empty dict because we are not inside a jupyter notebook.Any help with resolving this is appreciated.