Skip to main content

No project description provided

Project description

elara 🌙

elara is a CLI tool to convert Jupyter notebooks into pretty HTML documents.

Named after one of Jupiter's moons, elara's motive is to render beautiful HTML markups, with support for a number of themes. It has multiple built-in themes, and supports VSCode themes out of the box.

elara aims to support only nbformat v4 (you are most likely already using it).

Installation

elara is available on PyPI.

recommended way to install (isolated dependencies):

pipx install elarapy

using pip on linux/mac:

pip3 install elarapy

using pip on windows:

pip install elarapy

Usage:

$ elara [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • list-themes: Lists all built-in themes.
  • convert: Converts multiple jupyter notebooks into...

elara list-themes

Lists all built-in themes.

Usage:

$ elara list-themes [OPTIONS]

Options:

  • --help: Show this message and exit.

elara convert

Converts multiple jupyter notebooks into HTML documents. Any options passed, will be applied to all the jupyter notebooks.

Font options can be prefixed with gf: to use Google Fonts directly.

Usage:

$ elara convert [OPTIONS] FILES...

Arguments:

  • FILES...: [required]

Options:

  • --theme TEXT: The theme for code blocks. [default: vs]
  • --font TEXT: Font for overall document. [default: sans-serif]
  • --code-font TEXT: Font for code and output. [default: monospace]
  • --help: Show this message and exit.

Examples:

  • Using a built in theme with pre-installed fonts:

     elara convert ./file.ipynb --theme "nord" --font "Arial" --code-font "Consolas"
    
  • Using Google fonts

     elara convert ./file.ipynb --theme "gruvbox" --font "gf:Geist" --code-font "gf:Geist Mono"
    
  • Using a VSCode theme

     elara convert ./file.ipynb --theme path/to/theme.json 
    

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

elarapy-0.1.1.tar.gz (811.3 kB view details)

Uploaded Source

Built Distribution

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

elarapy-0.1.1-py3-none-any.whl (800.8 kB view details)

Uploaded Python 3

File details

Details for the file elarapy-0.1.1.tar.gz.

File metadata

  • Download URL: elarapy-0.1.1.tar.gz
  • Upload date:
  • Size: 811.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.14.6-300.fc42.x86_64

File hashes

Hashes for elarapy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be959789214380cd94c38bd4189a24f9e90185737d17ea1b4b66d3daffcbd121
MD5 79b91a42dc49f8990f4eee9bda064e93
BLAKE2b-256 d07f98de8c0a6cf4caf9b4ab970dc95888bfcd0c9c376e4989083e79c6fea6a0

See more details on using hashes here.

File details

Details for the file elarapy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: elarapy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 800.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.14.6-300.fc42.x86_64

File hashes

Hashes for elarapy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c49342ad2283d4ed20ac9bf4725c4934f17f7c83bae5644b907a6453be1b585
MD5 eafbffa5cc13ec6c9417141c26eb8a25
BLAKE2b-256 4943155c2ed323a021605b30fb84d778d9dbcc1113a409bd52c45f60b07a9ade

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