Skip to main content

No project description provided

Project description

specta 🌟

Github Actions Status Documentation Status Try on lite

A JupyterLite app to present your Jupyter documents in different ways

Specta is a custom JupyterLite app for rendering notebooks and Jupyter‑supported files in multiple modes: dashboards, blog‑style articles, fullscreen viewers, and more. It is built on top of JupyterLite, which allows you to share your documents through alternative interfaces to the IDE-like JupyterLab.

Features

Multi-mode Notebook Rendering

Render notebooks in:

  • Dashboard mode – structured panels for interactive widgets and outputs
  • Article mode – a minimal, blog-like reading experience

Clean Viewer for all Jupyter-supported file types

View any Jupyter-supported file using Specta's clean viewer with all Jupyter UI elements removed.

Preview from JupyterLab

A specta preview can be launched directly from JupyterLab, letting users verify how their documents will look when published.

Installation and Usage

You can install specta using pip or conda

# Install using pip
pip install specta

# Install using conda
conda install -c conda-forge specta

Once installed, you can build your JupyterLite app, a specta app will be included automatically in the output directory of jupyterlite:

jupyter lite build

Then serve the contents of the output directory (by default ./_output) using any static file server. You can access the Specta app at the /specta/ path.

Specta Configuration

Top-level configuration

Specta can be configured using the typicall JupyterLite configuration file: jupyter-lite.json. You can add a spectaConfig key to the jupyter-config-data section of this file to customize the Specta app.

The following options are available:

  • defaultLayout: The default layout when opening a file.
  • hideTopbar: Boolean flag to show or hide the top bar.
  • topBar: Configuration for the top bar.
      "topBar": {
        "icon": "url to the icon file, it's shown on the left of the top bar",
        "title": "Title on the left of the top bar",
        "themeToggle": "Boolean flag to show/hide the theme selector",
        "textColor": "Color of the text on the top bar",
        "background": "Background color of the top bar"
      },
  • perFileConfig: an object with key is the file path and value is the above configuration, it's used to have different layout/top bar config for each files, for example:
      "perFileConfig": {
        "blog.ipynb": {
          "hideTopbar": false,
          "defaultLayout": "article",
          "topBar": {
            "title": "My blog",
            "themeToggle": false
          }
        }
      }

Notebook specific configuration

By default, when you open a notebook in Specta, all code cells are hidden, and placeholder skeletons are shown instead at the position of the cell. You can configure the visibility of each cell by using the Specta cell metadata toolbar.

Cell toolbar

By opening the Property Inspector panel of JupyterLab and selecting the Specta Cell Config section, you can change the visibility of each cell as follows:

  • Show cell source: use this toggle to show or hide the cell source code. Default to false
  • Show output placeholder: use this toggle to show or hide the output skeleton. Default to true

Try it online!

You can try it online by clicking on this badge:

Try on lite

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

specta-0.1.8.tar.gz (5.3 MB view details)

Uploaded Source

Built Distribution

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

specta-0.1.8-py3-none-any.whl (5.2 MB view details)

Uploaded Python 3

File details

Details for the file specta-0.1.8.tar.gz.

File metadata

  • Download URL: specta-0.1.8.tar.gz
  • Upload date:
  • Size: 5.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for specta-0.1.8.tar.gz
Algorithm Hash digest
SHA256 36513075636e3793488ff48916fa0b58abd88433cd234407e859d6363096b04f
MD5 ef1165a7ffd0cbb8d045562d37b7ea4a
BLAKE2b-256 da52edd55822355c25977f37f829f4910f62ea6c9f7126a7c4897497320cca98

See more details on using hashes here.

File details

Details for the file specta-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: specta-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for specta-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dc9ec38b80ea86a94094cc389d758128c88025cccf11a42807a8b73e32386b4b
MD5 bffac31466225e1527fac8a1cd3a4fde
BLAKE2b-256 786c31333c070da99c4e92271b8946fe80efa46e5bd46ac7a59508da12e6966c

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