This commit is contained in:
LUIS NOVO 2024-11-01 21:33:07 -03:00
parent 15048b0839
commit c15982af3f

View file

@ -13,9 +13,7 @@ from open_notebook.utils import (
def version_sidebar(): def version_sidebar():
with st.sidebar: with st.sidebar:
try: try:
current_version = get_installed_version( current_version = get_installed_version("open-notebook")
"open-notebook"
) # Note the hyphen instead of underscore
except Exception: except Exception:
# Fallback to reading directly from pyproject.toml # Fallback to reading directly from pyproject.toml
import tomli import tomli