diff --git a/CITATION.cff b/CITATION.cff index a07ddb1b..0086abd8 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -20,5 +20,5 @@ keywords: - graphs - plotting license: MIT -version: 0.19.5 -date-released: '2026-02-06' +version: 0.19.6 +date-released: '2026-02-15' diff --git a/docs/changelog.md b/docs/changelog.md index 18f794e7..3fc18d96 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -17,6 +17,7 @@ - [**v0.19.5**] - Fixes bug with plotting labels when `attempts=1` - Improves performance of plotting constellations on horizon plots +- [**v0.19.6**] Fixes issue with running Starplot in a Jupyter notebook --- diff --git a/src/starplot/__init__.py b/src/starplot/__init__.py index 464f2dc3..3a4328c9 100644 --- a/src/starplot/__init__.py +++ b/src/starplot/__init__.py @@ -2,7 +2,7 @@ """Star charts and maps of the sky""" -__version__ = "0.19.5" +__version__ = "0.19.6" from .plots import ( MapPlot, diff --git a/src/starplot/cli.py b/src/starplot/cli.py index ce42c461..b31477fe 100644 --- a/src/starplot/cli.py +++ b/src/starplot/cli.py @@ -10,10 +10,9 @@ def setup(options): print("Installing DuckDB spatial extension...") + db.connect() # installs spatial extension as side-effect - con = db.connect() - con.load_extension("spatial") - + print("Building font cache...") fonts.load() print(f"Downloading data catalogs to: {settings.data_path}") diff --git a/src/starplot/data/db.py b/src/starplot/data/db.py index 617ca524..bd1fad08 100644 --- a/src/starplot/data/db.py +++ b/src/starplot/data/db.py @@ -12,9 +12,10 @@ def connect(): - connection = duckdb.connect() path = settings.data_path / "duckdb-extensions" + connection = duckdb.connect() connection.raw_sql(f"SET extension_directory = '{str(path)}';") + connection.raw_sql("INSTALL spatial;") connection.load_extension("spatial") missing_name_tables = set(NAME_TABLES.keys()) - set(connection.list_tables())