Skip to main content

No project description provided

Project description

wry-bokeh-helper

Bokeh is a great library for creating interactive plots in Python. However, it can be a bit verbose to use, especially when you want to export a plot to a standalone image file (which is fairly common in scientific publications). This library provides a simple wrapper around Bokeh that makes it easier to export them to image files.

Installation

pip install wry-bokeh-helper

Usage

from bokeh.plotting import figure, show
from wry_bokeh_helper import bokeh_to_image

# prepare some data
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]

# create a new plot with a title and axis labels
p = figure(title="Simple line example", x_axis_label="x", y_axis_label="y")

# add a line renderer with legend and line thickness
p.line(x, y, legend_label="Temp.", line_width=2)


# Export the plot to an image file
img = bokeh_to_image(plot, dpi=600)
img.show()

bokeh_to_image(plot, dpi=300, filename="plot.png")

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

wry_bokeh_helper-0.3.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distributions

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

wry_bokeh_helper-0.3.1-cp312-none-win_amd64.whl (532.0 kB view details)

Uploaded CPython 3.12Windows x86-64

wry_bokeh_helper-0.3.1-cp312-none-win32.whl (502.4 kB view details)

Uploaded CPython 3.12Windows x86

wry_bokeh_helper-0.3.1-cp312-cp312-macosx_11_0_arm64.whl (836.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

wry_bokeh_helper-0.3.1-cp312-cp312-macosx_10_12_x86_64.whl (878.0 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

wry_bokeh_helper-0.3.1-cp311-none-win_amd64.whl (530.9 kB view details)

Uploaded CPython 3.11Windows x86-64

wry_bokeh_helper-0.3.1-cp311-none-win32.whl (502.9 kB view details)

Uploaded CPython 3.11Windows x86

wry_bokeh_helper-0.3.1-cp311-cp311-macosx_11_0_arm64.whl (836.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

wry_bokeh_helper-0.3.1-cp311-cp311-macosx_10_12_x86_64.whl (878.8 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

wry_bokeh_helper-0.3.1-cp310-none-win_amd64.whl (531.0 kB view details)

Uploaded CPython 3.10Windows x86-64

wry_bokeh_helper-0.3.1-cp310-none-win32.whl (502.9 kB view details)

Uploaded CPython 3.10Windows x86

wry_bokeh_helper-0.3.1-cp310-cp310-macosx_11_0_arm64.whl (836.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

wry_bokeh_helper-0.3.1-cp39-none-win_amd64.whl (531.2 kB view details)

Uploaded CPython 3.9Windows x86-64

wry_bokeh_helper-0.3.1-cp39-none-win32.whl (503.1 kB view details)

Uploaded CPython 3.9Windows x86

wry_bokeh_helper-0.3.1-cp39-cp39-macosx_11_0_arm64.whl (836.3 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

wry_bokeh_helper-0.3.1-cp38-none-win_amd64.whl (530.8 kB view details)

Uploaded CPython 3.8Windows x86-64

wry_bokeh_helper-0.3.1-cp38-none-win32.whl (502.8 kB view details)

Uploaded CPython 3.8Windows x86

File details

Details for the file wry_bokeh_helper-0.3.1.tar.gz.

File metadata

  • Download URL: wry_bokeh_helper-0.3.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for wry_bokeh_helper-0.3.1.tar.gz
Algorithm Hash digest
SHA256 543e88f0905443651cf97022f3e23b6241582d04307f4ec76b4f6acc56e6637a
MD5 715e516515b2ac199bb45802499a1584
BLAKE2b-256 20af74213ab7678d74311cf81a7b562440f961513eb0039e73a8de7c87aaead6

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 caf3a22e1b1eac56ae619677317db80f9fb61d04fc23760957aeba3f54b5546b
MD5 dbd63648c953f25a38aaba6f0a665e3c
BLAKE2b-256 ea02c82dbbf90c58360106a61738f30e9629f1d8fff5c1065d5d5fa08e3b2a62

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp312-none-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp312-none-win32.whl
Algorithm Hash digest
SHA256 a62fd2e701014a42ee174df15153a68cad9b0c02a22083c7a5a0db48d4b21e44
MD5 17937d988206f7b5247634ea0887f1f4
BLAKE2b-256 21ecb0f38fbe91758046edbc205fb7ca1e6f1fb6ebd60418fee9b1acd9186060

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8086379483d97797c8c530540fc3f347f5dce6b79cfe77e41a317208b902f88a
MD5 f3a4a34698f7d9529365ff93ec749b92
BLAKE2b-256 8d36ae8a684376dddd9723def1f08264f5ee5320265cf589ae7318daf20120ab

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9bdfa79a4adfae5113b9f1c0c4daf7fef74def3ad77ce52038a7e2981bc169e3
MD5 8f438cc9217f518fe5d1b407a4429e74
BLAKE2b-256 3b33a02d9c89c39154d120a7de11b32a4e367742cbcb7e014911024f212afb0f

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 5f3c745a69e851877f874617d8ff8453e2758e641b55343b51e0aedaad6dd7ad
MD5 ef681937dac9688a3b6a18c05eb3035f
BLAKE2b-256 dc68f57ff1cb3983384213fef03adfb2f4b407916c6d7e479fcd5be989e44612

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp311-none-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp311-none-win32.whl
Algorithm Hash digest
SHA256 8b8f5b6ddf366d736686765550cc68b4201f240a5dbcaeceb43588c67a73670a
MD5 319f6bbd080fb100560c50c326bba3cf
BLAKE2b-256 b54249a43cd2973e9b3759b80ab5b3d595e2511aed675804b5ac8d2d1c2a9af6

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89b54316516fff711dbdc1e899ed22f210e48baae5889edb9bb0a88b0b03b6ce
MD5 b8f7407fe3415b84247aa3321967b726
BLAKE2b-256 ae434849454afe350a596df2b8cac1525bf446bda2ff6adb3b11ef91bd4b6c7a

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7f8457f83067d52d7c7d0ab8f033ef4911f7caa14ed88a89fa43cff02fb3f5e9
MD5 e7c39322d282289ea0b5fa366b50d8e5
BLAKE2b-256 ce9488cd64eb9c84fcea8d5d8a1e1d9ec385218aa5c571e70adae8fe3c28d717

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 64a9c3969171403b5c09d4e00f354b3b16482c93def867d3df9f32a48dd05334
MD5 e39ab7a431cf80a7139e6b4da0958044
BLAKE2b-256 00a163a78bdec1bbc3fc60cc2590cf5af29786fb6695c81d378982b115f9b01f

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp310-none-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp310-none-win32.whl
Algorithm Hash digest
SHA256 03c82d4e0a8bd32f0d1f32a02ddfb6b91240d8f7fe2e13fbc328118ea2a2e01f
MD5 205ee451af08bb18cbffc7e8552c54ba
BLAKE2b-256 f891b787fdcc9823e108b30be37c622e5d64eb977b97606fcb2a513b5e154b17

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb01071a1a5c6740a705a5d7def5d219f32ac9a3da7e50f9f974b56cdaf4eb01
MD5 57ddcbb2bd09fc02baa1b9cfcff07e66
BLAKE2b-256 5cfa97deb197cb5c35ac098c7c6e398767f35435fa6e5cbb8561c7a2c21e70a8

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 49fa7e19f157e18f807ed8da055f3060ad1b2b2a9d37c816608309484e610d1d
MD5 24f4f4494ae1a4d40435cfb852274210
BLAKE2b-256 b625ab86543174726b6a621136ed0d45b1ccaf50b97d9fb31f486654db030233

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp39-none-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp39-none-win32.whl
Algorithm Hash digest
SHA256 e15f5bf683be05c68c9d06d304c89c74fb1b6c6672ec52f7fcd9734cad7d191a
MD5 f95fb103e777df89d6ad556abd3fe001
BLAKE2b-256 e98fc20f0eb3dfb03125ad5ecfe051718019ac0250c4c683caed5acb0d50a46a

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 895db9c75b458cdcd246ebfc74206b93fa0f61887d4f946f8d03767ce9e159e1
MD5 cfff6876ed558649f494ff0e48c91797
BLAKE2b-256 6828b7bc74273f5aa9fb2faaa5b57479ceb17d1e381279691e0cc39d105e2066

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 eaaef0de89f11708ab018bec23eda5a974fd58f23e885cebbadf25e70a5b7ca7
MD5 19b2bb316850ddfbd011c66f47ae39d4
BLAKE2b-256 a80e8e8354a7e18f5e3add2826b6528b5cc006030de5199edebc3de9053dc9fc

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.3.1-cp38-none-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.1-cp38-none-win32.whl
Algorithm Hash digest
SHA256 69654b4523aed1bc415f664d174bac7296c68ff3bd05c49cfb0b496e4035cfda
MD5 f10da44e8719fc014b3f8540103867fc
BLAKE2b-256 f12324adadcd5e81ea7d0a0e88263a7dfa476dfe3557db56a6915be911daaaca

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