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.4.1.tar.gz (27.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.4.1-cp313-cp313-macosx_11_0_arm64.whl (837.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

wry_bokeh_helper-0.4.1-cp312-cp312-win_amd64.whl (532.6 kB view details)

Uploaded CPython 3.12Windows x86-64

wry_bokeh_helper-0.4.1-cp312-cp312-win32.whl (502.6 kB view details)

Uploaded CPython 3.12Windows x86

wry_bokeh_helper-0.4.1-cp312-cp312-macosx_11_0_arm64.whl (837.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

wry_bokeh_helper-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl (878.1 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

wry_bokeh_helper-0.4.1-cp311-cp311-win32.whl (502.6 kB view details)

Uploaded CPython 3.11Windows x86

wry_bokeh_helper-0.4.1-cp311-cp311-macosx_11_0_arm64.whl (837.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

wry_bokeh_helper-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl (878.6 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

wry_bokeh_helper-0.4.1-cp310-cp310-win_amd64.whl (530.9 kB view details)

Uploaded CPython 3.10Windows x86-64

wry_bokeh_helper-0.4.1-cp310-cp310-win32.whl (502.6 kB view details)

Uploaded CPython 3.10Windows x86

wry_bokeh_helper-0.4.1-cp39-cp39-win_amd64.whl (531.0 kB view details)

Uploaded CPython 3.9Windows x86-64

wry_bokeh_helper-0.4.1-cp39-cp39-win32.whl (502.8 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.8Windows x86-64

wry_bokeh_helper-0.4.1-cp38-cp38-win32.whl (502.6 kB view details)

Uploaded CPython 3.8Windows x86

File details

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

File metadata

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

File hashes

Hashes for wry_bokeh_helper-0.4.1.tar.gz
Algorithm Hash digest
SHA256 beb854d61531f35a4bae5b30dd69ed34c0c764a7548a811495cc3cf294d9f811
MD5 7fc58bcb270f621bbf4efd9f3354cdbf
BLAKE2b-256 bdd23a498a288c9abc0179bcc8c18432edd3ab7159e4c8a8968195ccc22cf9d2

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23bfcd3af85e96e470f6041487ec1432b3c1ecae12b2a3066af72b90c9deaf0f
MD5 0bc35467dea7255c889ed4038be4c4a3
BLAKE2b-256 d1f871ed99080cf47d82a27532f1eb9e79e6416d4949c87cfeb329036c7bf685

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9094580f901c80a357827ea567fa09bcca58c40687bf80c03c67e02f4a639a34
MD5 554f0b0f62e47e4ce507373e687c2705
BLAKE2b-256 e8c7ae409018afd5d7ae46cd5ade2c09e28325ea3b142174f0f6ff1992337ea8

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9b99c8ca1cd33c4c046b19aec4be8a874c56e028ee7ae892464a7705ce4317e1
MD5 e6020a7a83190cbf5e47268c2cd49b1d
BLAKE2b-256 da6988a4abc746ffc69e9c50857172e97062bd92d68b0194d3cf791414cbdf8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 113479338a62c1ee2e7dc803158bbb8efc76f990e4bc5b86aec61e564c8c1d62
MD5 0a2a154cce41a7604abbae6a7be194ce
BLAKE2b-256 4401635b2ef8e015f10e3a67af1a90ac82f70638bcfd25420f5373a5ab0e2f3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4cbbfdf773f6d0118389c776e1447674bc859617ed0ab11530602f14ab985496
MD5 736c5ee92639ef5365e8868344585682
BLAKE2b-256 d3b4370faed86604688215caca18b2bcbeb52ace5c847b73dd10c17dd5713360

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0ceec1fa4f3af04210007d2c236aa86646af96c17200d55091fdec33dcbf9d98
MD5 e75fa051e8b970302f35bf7b361ac8dd
BLAKE2b-256 c1eee6e52d4fd7949a6c66e84950a6d93ec9fc2c8524e01648b77c8803d3ca5f

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8d14b333566cec7fca8eec6c172329731ef17fc6e623015fc3d4a0d2b136bafb
MD5 ae33c5936598153083e09ff6d74297d1
BLAKE2b-256 548bac0ec9b14457b401bba0c00ce8be2885d3c6a7702124dcee7b99b0423712

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 becdfe57cf95f703b75b98fe0854344bd3843329fd35507e43a8d777e3101cd6
MD5 819c31a4ac2dcaeccf441c06bb3f02c2
BLAKE2b-256 fd5bea2345f61be9cfdb94d9782fb009563fbe4f1d9e25b3c0832471cb626e55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a435d1e0848a4a2df108c4b9279309725737f416b622ad16965b947cc49c6a4b
MD5 29f631a57ba5a147da1103ec2b2e8e1d
BLAKE2b-256 80ec72aed10bbdd6f2984dc0f1bf3caa79fdd36f40f95c50c96efcd626fbae8f

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b4ffb7662ca90104b2f404a385425446a248c3aa10ef05ca924678e8916a1a83
MD5 c118a8495f03a3db9825b4f938c8c3ec
BLAKE2b-256 b0fbfa32eeeb30a5a76a64f2f0b5737e6109f45d3baf281e988ee47bf1d41e7b

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 929313605a6c98a41e7fdf24f262866268800fe501d35710f5e69fc16114658c
MD5 307b87642421ddf83538791ca1eee1dc
BLAKE2b-256 666788eb1ad093f6873f17591179203747c408f00aded2adf9f89d3a6062c5ec

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 091c0f9632df57809232f16d471168a37382a26e713e51268aae56623d9dde95
MD5 fb3b76ee4dc51fa901d5c143705c6655
BLAKE2b-256 5b5bd1ffda39e75c6b8deeb2b24ee409e4419ce5fcea77920ea1d7428fc75d4b

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp39-cp39-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 38efd519d4ebe99d5c4847580c2c61a7a0e96cc9a2916857a9264eb4bcbf1b8a
MD5 1373492da9d3a4968af3f483f36f2e47
BLAKE2b-256 3bc671302071789d7c09f9a129f6377a96eac746a193a4350b21f8c19d21ec2e

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a7c39d3b673dfbdf79c15e352482fb4f417c4a81872867a13c5004a8f1aa21fa
MD5 d9cec54c596dbbad5efa4968a1170351
BLAKE2b-256 5aaf5418626a1dceda760911a33adcfd12f708145361f9e03d6ab756c23f2fa6

See more details on using hashes here.

File details

Details for the file wry_bokeh_helper-0.4.1-cp38-cp38-win32.whl.

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8b48a5063194780be5b15977dffd3410ca7c589c92c572657e2d7ae39f3200eb
MD5 673396a35a3963681f0a867bdf8b9ef3
BLAKE2b-256 97e280872b39474c45be125c926fd7ddbac31558755fa43f10265d894993938c

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