Skip to main content

vzlog

Tool for logging rich content to an HTML file. It has two main advantages over interactive logging:

  • You can run experiments with loads of output, without having to be halted by an interactive plot. If you solve this by dumping plots to individual images, you might want to try vzlog instead, since it can seamlessly integrate text and images.

  • If you often work remotely from a computer with a public HTML directory (such as a University account), you can plot directly to that directory. VzLog can in that case make sure the files have public viewing permissions.

Installation

pip install vzlog

Documentation Documentation Status

Features

  • Logs rich content data, such as plots and images, to an HTML file.

  • Works with any plotting library that can save to file (e.g. matplotlib).

  • Ability to explicitly set file permissions. This is useful if you are using this on a server with a restrictive umask, but you are plotting to a public HTML folder. No more clunky X redirection to do remote plotting.

Example

Apart from commands that print text, the key command here is vz.impath, which returns an image path. The path is at the same time added to the log output:

import vzlog

vz = vzlog.VzLog('mylog')
vz.title('Plots')
vz.section('Silly plot')

x = [1, 2, 3, 1, 2, 3]
vz.log('x =', x)

# Plot directly to the vzlog file
import vzlog.pyplot as plt

plt.figure(figsize=(4, 4))
plt.plot(x)
plt.savefig(vz.impath('svg'))

Metadata

Release files for vzlog 0.1.8

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

Source distribution (sdist)

Source distribution for vzlog 0.1.8
File Size Uploaded Provenance Actions
vzlog-0.1.8.tar.gz 109.8 kB Without provenance Details for vzlog-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vzlog 0.1.8
File Interpreter ABI Platform Actions
vzlog-0.1.8-cp34-cp34m-macosx_10_10_x86_64.whl CPython 3.4 CPython 3.4 pymalloc macOS 10.10+ x86-64 Details for vzlog-0.1.8-cp34-cp34m-macosx_10_10_x86_64.whl

Total release size: 239.2 kB

Release files / vzlog-0.1.8.tar.gz

Download URL vzlog-0.1.8.tar.gz
Size 109.8 kB
Tags Source
SHA-256 checksum
How to use checksums
317e754d7cfb26406b96b61b94d813d01e7f41dd429d01283aa84bd9976b5819
BLAKE2b-256 checksum
How to use checksums
e210f320f9828d8037bc8b0051492ed15919a63bb5b3572f31d9494aabd8ae63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / vzlog-0.1.8-cp34-cp34m-macosx_10_10_x86_64.whl

Download URL vzlog-0.1.8-cp34-cp34m-macosx_10_10_x86_64.whl
Size 129.4 kB
Tags CPython 3.4 CPython 3.4 pymalloc macOS 10.10+ x86-64
SHA-256 checksum
How to use checksums
4dac5067ae19b5fa1fff6438bd92c643697be31d32c48519687975a3e233f0de
BLAKE2b-256 checksum
How to use checksums
2cefe75305fc886ea80128695f20d9dae3dd9b8277213ae210804c3c2c449b7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for vzlog 0.1.8

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