Skip to main content

SatSimJS widget for Jupyter and Marimo (Cesium-based)

Project description

SatViz

SatSim source code was developed under contract with AFRL/RDSM, and is approved for public release under Public Affairs release approval #AFRL-2022-1116.

The SatSimJS widget for Jupyter and Marimo.

alt text

Installation

pip install satviz

or with uv:

uv add satviz

Usage

Jupyter

from satviz import SatSimJS
w = SatSimJS(height="1000px")
w

Marimo

import marimo as mo
from satviz import SatSimJS

widget = SatSimJS(height="900px")
w = mo.ui.anywidget(widget)
w

Configuring fullscreen rectangle

Reserve space for headers/footers by customizing the overlay fullscreen rectangle from Python. Values can be numbers (pixels) or CSS strings.

from satviz import SatSimJS

w = SatSimJS(
    height="600px",                      # height when not fullscreen
    fullscreen_rect={
        "top": 64,                       # e.g., top banner height
        "left": 0,
        "width": "100vw",                # or e.g., "100vw"
        "height": "calc(100vh - 96px)",  # subtract top+bottom banners
        "zIndex": 10000,                 # optional overlay stacking order
    },
)
w

Release

To build and publish a release to PyPI:

  1. Bump version in pyproject.toml.

  2. Build and validate locally:

    uv pip install --upgrade build twine
    uv run python -m build
    uv run twine check dist/*
    
  3. Publish:

    • Manual: twine upload dist/* (requires a __token__ PyPI API token)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

satviz-0.4.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

satviz-0.4.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file satviz-0.4.0.tar.gz.

File metadata

  • Download URL: satviz-0.4.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for satviz-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9cd467120df8a38e375d888689f67f8cc01be3b2af2fe22d7c20e61f8260a807
MD5 b91d8c01ce0d2d2e3ad06c5719052048
BLAKE2b-256 6ee40dc86732a63a130f7d5574daf6da5956e786faea6f67d8c7e688f8e992c0

See more details on using hashes here.

File details

Details for the file satviz-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: satviz-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for satviz-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7034c69417363a50e3ba03dbf305afeeb1b5da946258b71195970d4e89b5dbbc
MD5 8933eb0cbad53df3a7a3e2191d9e8999
BLAKE2b-256 d9113592b48537e79efffe2acbbc21efe61e4f787a92a97440007b74adf0fa46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page