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.3.tar.gz (26.6 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.3-cp312-none-win_amd64.whl (532.4 kB view details)

Uploaded CPython 3.12Windows x86-64

wry_bokeh_helper-0.3.3-cp312-none-win32.whl (502.9 kB view details)

Uploaded CPython 3.12Windows x86

wry_bokeh_helper-0.3.3-cp312-cp312-macosx_11_0_arm64.whl (836.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

wry_bokeh_helper-0.3.3-cp312-cp312-macosx_10_12_x86_64.whl (878.4 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

wry_bokeh_helper-0.3.3-cp311-none-win_amd64.whl (531.5 kB view details)

Uploaded CPython 3.11Windows x86-64

wry_bokeh_helper-0.3.3-cp311-none-win32.whl (503.4 kB view details)

Uploaded CPython 3.11Windows x86

wry_bokeh_helper-0.3.3-cp311-cp311-macosx_11_0_arm64.whl (836.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

wry_bokeh_helper-0.3.3-cp311-cp311-macosx_10_12_x86_64.whl (879.2 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

wry_bokeh_helper-0.3.3-cp310-none-win_amd64.whl (531.6 kB view details)

Uploaded CPython 3.10Windows x86-64

wry_bokeh_helper-0.3.3-cp310-none-win32.whl (503.4 kB view details)

Uploaded CPython 3.10Windows x86

wry_bokeh_helper-0.3.3-cp310-cp310-macosx_11_0_arm64.whl (836.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

wry_bokeh_helper-0.3.3-cp39-none-win_amd64.whl (531.6 kB view details)

Uploaded CPython 3.9Windows x86-64

wry_bokeh_helper-0.3.3-cp39-none-win32.whl (503.6 kB view details)

Uploaded CPython 3.9Windows x86

wry_bokeh_helper-0.3.3-cp39-cp39-macosx_11_0_arm64.whl (836.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

wry_bokeh_helper-0.3.3-cp38-none-win_amd64.whl (531.3 kB view details)

Uploaded CPython 3.8Windows x86-64

wry_bokeh_helper-0.3.3-cp38-none-win32.whl (503.3 kB view details)

Uploaded CPython 3.8Windows x86

File details

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

File metadata

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

File hashes

Hashes for wry_bokeh_helper-0.3.3.tar.gz
Algorithm Hash digest
SHA256 94558e3e42d2554d9126f262005d6c066ba4f750c6247288f4b7e781d3479f5a
MD5 3333f9445e6fef684dcc1cca0881d06f
BLAKE2b-256 46326a36ad63eef2c8f1ddf7b38084781cda46a96cbb2e5b8ea6a2fe79b92cd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 827e2d1835ebee28405db1e1eeabb99830c6648ca35085f3156994f6490aeb00
MD5 8c3745868136df534e6265f909e2c512
BLAKE2b-256 91110469b2293db54fd883fe6de10c0f3c1c168b582256577d3591870910f2cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp312-none-win32.whl
Algorithm Hash digest
SHA256 655f6fbdc32c991aa07be74b53abe5778d65be0ce9f2f70595605e6c9417eedf
MD5 fe11c890316cde705117a94dff0a1073
BLAKE2b-256 139f54dc183668146a5577b7c44b6f2d62d3a7f5b9596f1b2244b66235feaf7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98b6f2d2087f0860147a4bd9f8083311013c3fcdf1275e598b5ac665581a4199
MD5 18001155303f2c5b386f9a54686d255e
BLAKE2b-256 ccfdc1b34faef9ce29b050eb0dcd95e642dd7d94e5b0136c6d9aee4b058ba2a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c909d4b5c58d5b49dca4043a4f29d75dd2a2961b800b71a932d3d3683e1a30fc
MD5 7b07db57ed7cb4a0f6b5da77e380b2cb
BLAKE2b-256 3e4afdde08a96ff247d9667be1117ed82df97c11756b1301cc60e95a721e4d58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 64314543194896ba32262b9f9543900cc90130379998cbe852d0b3b6cf01c23b
MD5 50d22b9622910b5949dcbcab15981d5b
BLAKE2b-256 1ce2fc5fff922078ee774ba68f3958321b9be673e08b353c8d4f7bba6d6ae565

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp311-none-win32.whl
Algorithm Hash digest
SHA256 74f3ab29f9fb564c776e8f399016c6eb663201890fe4ac8daa7b4224d671449e
MD5 7ea7ef4c834aa5437c826b80c004f0c2
BLAKE2b-256 6f23fff1f9475ad3a1879e6bb74e6dee7f234d9cfce9ba86806aa07257b102d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a51f7bf111a322bdc04def61c9f1a842e1533b478b795d02f276c6a68d5c3f3
MD5 fc374bba8e59bbcabe1b17c5e2608b15
BLAKE2b-256 502aa8de84eca8b8efe5143b7debc3caafd1b38d330af79ef838c29ba58d216d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f110d54a219de9e45912ba78c5bb00588e0dfd8b30257446db93585f6edfbc4c
MD5 b36026eb7f5fa5908a03b48e010f9008
BLAKE2b-256 0757437f805095e9927182b727d1e1203feae930b2c3a7f793f8a4d9b348b4db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 f7316d5520715f3ffeb8a36253e1844422228c792e89c7a6b610fccbd7f8a3d0
MD5 56af4331411d9b09fd6d1ea10b781648
BLAKE2b-256 d4c202b05c5de89bf51bf48136822daad60bea3cc1f78ea8c8e60aa27092da1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp310-none-win32.whl
Algorithm Hash digest
SHA256 7868ed2f58f43322ff46f7710d99098996b0c46c0a0c38bb2f022a5307b39348
MD5 5718f8bedcc9e8dc3158dbc900e11f85
BLAKE2b-256 346f7a6216c9577eb5b7164a9b89e807dcb06f152726fa2a4a3e7bcced36e5c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce57add5730e3ecfb6b53908a6848186ff46af2d04b64d30b5d543b1400dd05a
MD5 92d1d8ad4a6918c96abea349f517cc7e
BLAKE2b-256 445da3a1c3faa4979205719c7b635a837687f25f1fc481101ebf0651e7635e2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 423d5e30e7eaaca14267aa840204d399a9d60769b014897d65cbff22267594a1
MD5 35519451caa513cf6178225f3e8f9e5d
BLAKE2b-256 bc75778a0b218d0543e10192b5f7a68794fc60fb47c505778881715e20d71a24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp39-none-win32.whl
Algorithm Hash digest
SHA256 f6b42f2c74a54aee1bddf033cb08e206b5383780f2274e826b92e2c8d0fba581
MD5 675c70472bea9c743b098dc9ac93f4d9
BLAKE2b-256 6327019de0ab2396b2b376cf814e85fe746368352d741844fb8cee4014fd528d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b20958e718383eb829fadfdfa23ae730368547991aa8db306f3f2fe1c55c87ec
MD5 e8220de642111e5f090c39723099b4cf
BLAKE2b-256 ed411abb5be0b3687ea99a13d4f01b04ad0136baa730246995123cc5fe1c3411

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 14448209728bc8e1d02467b62819cb8b28e6c3e16a49d11e25ddcb770cc09cf1
MD5 1bd66916bd89509f9ea0443312e72218
BLAKE2b-256 5dcd6696194be4f304f474ca92180367298397a947cec04d4b611175caa6e7ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.3-cp38-none-win32.whl
Algorithm Hash digest
SHA256 94e0a2b4aef3640e763f0af8eedad61a6a0c7e5bec72bddd50956e8a2f031ce9
MD5 c075f7a112287151f0367663755275fb
BLAKE2b-256 787dd4b1ff0dead00dd65cbb976b3cfa557788cf0cd3c1e49aba4aba14b67cdd

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