Skip to main content

No project description provided

Project description

PyPI version License Documentation Status

Nerd Fonts Logo

About this Project

This project is a Python Module that provides a set of icons from the Nerd Fonts project for the usage with Manim. Manim can use any font in principle. Nerd Fonts and their icons can be used in Manim as well! This project allows you to create Nerd Font icons in Manim by referencing the icon name or unicode. This might be more convenient than copy pasting items as strings into your code. This package also takes care of providing a font, so you even don't need to have a nerd font installed on your system.

Installation

Install the package with pip:

   pip install manim-nerdfont-icons

Minimal Example

Please make sure you have manim installed and running on your machine

Below is a minimal example of how to use the Module.

import manim as m
from manim_nerdfont_icons.icons import nerdfont_icon


class NerdfontIconUnicodeExample(m.Scene):

    def construct(self):
        # Set the background color
        self.camera.background_color = "#ece6e2"

        icon = nerdfont_icon("language-python", color=m.BLUE)

        self.add(icon)


if __name__ == '__main__':
    import os
    from pathlib import Path

    FLAGS = "-pqm"
    SCENE = "NerdfontIconUnicodeExample"

    file_path = Path(__file__).resolve()
    os.system(f"manim {Path(__file__).resolve()} {SCENE} {FLAGS}")

This should yield a Scene that looks like so:

Example Output Screenshot

Documentation

This project uses sphinx for generating the documentation. It also uses a lot of sphinx extensions to make the documentation more readable and interactive. For example the extension myst-parser is used to enable markdown support in the documentation (instead of the usual .rst-files). It also uses the sphinx-autobuild extension to automatically rebuild the documentation when changes are made. By running the following command, the documentation will be automatically built and served, when changes are made (make sure to run this command in the root directory of the project):

sphinx-autobuild ./docs/source/ ./docs/build/html/

If sphinx extensions were added the requirements_dev.txt file needs to be updated. These are the requirements, that readthedocs uses to build the documentation. The file can be updated using this command:

poetry export -f requirements.txt --output requirements.txt --with dev

This project features most of the extensions featured in this Tutorial: Document Your Scientific Project With Markdown, Sphinx, and Read the Docs | PyData Global 2021.

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

manim_nerdfont_icons-1.0.2.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

manim_nerdfont_icons-1.0.2-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file manim_nerdfont_icons-1.0.2.tar.gz.

File metadata

  • Download URL: manim_nerdfont_icons-1.0.2.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for manim_nerdfont_icons-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9706a9089942a59bf02818be732a3d4baf34fb98f1a45169415d7f32e7a26429
MD5 f4f2304c01f5868e9ee6cf8d258b4a31
BLAKE2b-256 8b663c755ee602e72070328885433b97688aabad9b15c194f0ad58642dfe2dc8

See more details on using hashes here.

File details

Details for the file manim_nerdfont_icons-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for manim_nerdfont_icons-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 070a02c0b5a75083a480026194e4607aaaebd1f0985c24e48f814f875bc35ca3
MD5 58c7f0558a1eed29331c790e03b45842
BLAKE2b-256 f02686388004c8864b8de9705b64057ea2060caabb9055a87f3d688ae0ce2087

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