Skip to main content

VSCDARK

This is a simple package to provide a matplotlib dark theme that fits well with the Visual Studio Code dark theme. Additionally the package provides features to properly style interactive plots in notebooks.

Usage

Two a matplotlib style and two functions are provided:

The style can be applied using matplotlib's plt.style.use function:

plt.style.use('vscdark.vscdark')

If styling for interactive plots is also desired, the provided set_style function should be used:

def set_style(new_theme: str | None = None, dark: bool | None = None, display_css: bool = True, verbose: bool | None = None) -> None:

This function applies the current theme configuration and potentially changes options.

Arguments:

  • new_theme: The name of the theme to apply. If None, the currently stored theme is reapplied.
  • dark: Only relevant for the interactive CSS. If None, the setting remains unchanged.
  • display_css: Whether to IPython.display the IPython.HTML object that contains the CSS for widgets. It must be displayed somewhere in the notebook to take effect.
  • verbose: If True, the css will contain "Widget CSS Active" to indicate that it is taken into account by the renderer. If None, the setting remains unchanged.

The IPython.HTML object containing the CSS can also directly be accessed using the css function:

def css() -> IPython.HTML:

Metadata

Release files for vscdark 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vscdark 0.3.3
File Size Uploaded Provenance Actions
vscdark-0.3.3.tar.gz 3.0 kB Without provenance Details for vscdark-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vscdark 0.3.3
File Interpreter ABI Platform Actions
vscdark-0.3.3-py3-none-any.whl Python 3 none any Details for vscdark-0.3.3-py3-none-any.whl

Total release size: 7.2 kB

Release files / vscdark-0.3.3.tar.gz

Download URL vscdark-0.3.3.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6167f24112168c5668db59559690c36daceeeea18bd0bd8b33c36b30495f4921
BLAKE2b-256 checksum
How to use checksums
f4e5c3ebc1b08b85885954f6fbc25fc0fb8e2894fcdc0f4ea89e0c2b3f96846a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.11.5 Windows/10

Release files / vscdark-0.3.3-py3-none-any.whl

Download URL vscdark-0.3.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c146f83a645281b21a0b0e6da3608dd2dec854bd83c5f2f424d326f33b6fc91d
BLAKE2b-256 checksum
How to use checksums
667a80805454ee6ca299cc93142d4285f840bb62447a1ffd4017d010e41207dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.11.5 Windows/10

Security for vscdark 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page