Skip to main content

A small logger that lets you write logs readable by Tensorboard but doesn’t require Tensorflow.

Usage

You can use the logger as a context manager:

from tensorboard_easy import Logger
import numpy as np

with Logger('/path/to/logs/folder/') as log:
    log.log_scalar('my_scalar', 100, step=1)
    log.log_image('my_images', np.random.rand(3, 20, 20), step=1)

or you can close the logger explicitly:

log = Logger('/some/other/logs')
log.log_text('my_text', "Let's throw in some text", 0)
log.log_text('my_text', [['Some', 'tensor'], ['with', 'text!']], 1)

log.log_histogram('my_histogram', np.random.rand(500), step=0)
log.close()

It supports scalars, images, text and histograms.

You can also create functions, that write to a specific tag and automatically increase the step:

with Logger('/path/to/logs/folder/') as log:
    write_loss = log.make_log_scalar('loss')
    for i in range(1, 100):
        write_loss(1 / i)

Installation

It can be installed via pip:

pip install tensorboard-easy

The tensorflow or tensorflow-tensorboard packages are not required, however you will need one of them to visualize your logs.

Metadata

Release files for tensorboard-easy 0.2.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 tensorboard-easy 0.2.3
File Size Uploaded Provenance Actions
tensorboard-easy-0.2.3.tar.gz 12.0 kB Without provenance Details for tensorboard-easy-0.2.3.tar.gz

Release files / tensorboard-easy-0.2.3.tar.gz

Download URL tensorboard-easy-0.2.3.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cd8a86045966b368bc1dd4b0c0e9a91f0011daa5d83188012a3f7467c04a6fd2
BLAKE2b-256 checksum
How to use checksums
b7f6e0348a81a3c4756204cc0ff65de0b0381a5fa653bcb74bbd81741f2dc41d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tensorboard-easy 0.2.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.

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