Skip to main content

Create videos from numpy arrays in a jupyter notebook

Project description

Video from numpy array in Jupyter Notebook

PyPI version

Create videos from numpy arrays in a jupyter notebook

Original source from Alexander Mordvintsev

Install

pip install notebook-video-writer

Dependencies

  • Must have ffmpeg installed

Usage

import numpy as np
# optionally wrap with tqdm for progress bar
from tqdm import tqdm
from notebook_video_writer import VideoWriter

with VideoWriter(fps=40) as vw:
    for i in tqdm(range(100)):
        frame = np.random.rand(256,256,3)
        vw.add(render)

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

notebook-video-writer-0.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

notebook_video_writer-0.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file notebook-video-writer-0.0.4.tar.gz.

File metadata

  • Download URL: notebook-video-writer-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for notebook-video-writer-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bfc180367616ea793a570c95c99de580c40b5ca78c2a3bef25f474e69ccd4642
MD5 56abe627b93df303b442fe2f696d8747
BLAKE2b-256 5922c879668d5badaa7d5ef6f1a7edda386286e6230759adddc27da58c233fa4

See more details on using hashes here.

File details

Details for the file notebook_video_writer-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: notebook_video_writer-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for notebook_video_writer-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 24ede9f710e0baecd1779adf0c7e64ac12714d1142827806388d7d00497bc566
MD5 8225620276e1507719536e332acb217d
BLAKE2b-256 a05faa5c5afb807f918041beab9318638d8712792cd7b13e13fee80b2a838f5a

See more details on using hashes here.

Supported by

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