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

Uploaded CPython 3.12Windows x86-64

wry_bokeh_helper-0.3.2-cp312-none-win32.whl (503.6 kB view details)

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

wry_bokeh_helper-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl (878.5 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

wry_bokeh_helper-0.3.2-cp311-none-win_amd64.whl (531.4 kB view details)

Uploaded CPython 3.11Windows x86-64

wry_bokeh_helper-0.3.2-cp311-none-win32.whl (503.2 kB view details)

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

wry_bokeh_helper-0.3.2-cp311-cp311-macosx_10_12_x86_64.whl (879.0 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

wry_bokeh_helper-0.3.2-cp310-none-win_amd64.whl (531.4 kB view details)

Uploaded CPython 3.10Windows x86-64

wry_bokeh_helper-0.3.2-cp310-none-win32.whl (503.3 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

wry_bokeh_helper-0.3.2-cp39-none-win32.whl (503.5 kB view details)

Uploaded CPython 3.9Windows x86

wry_bokeh_helper-0.3.2-cp39-cp39-macosx_11_0_arm64.whl (836.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

wry_bokeh_helper-0.3.2-cp38-none-win_amd64.whl (531.2 kB view details)

Uploaded CPython 3.8Windows x86-64

wry_bokeh_helper-0.3.2-cp38-none-win32.whl (503.2 kB view details)

Uploaded CPython 3.8Windows x86

File details

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

File metadata

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

File hashes

Hashes for wry_bokeh_helper-0.3.2.tar.gz
Algorithm Hash digest
SHA256 2003f284fc45c0b954ef13f4efebd23635831966467ea6d099c7ac0784b4009a
MD5 77217779fc216bdc62d15c1272c583ae
BLAKE2b-256 b65e73e4b8beb4d95ecc0241d6cb933163fb1ada68e104c5371687b422598453

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 6e56d1f8b3117e081d1a17e596904ff8d5731f5c6bc2c11886716821373a45e2
MD5 7f2300d4648351902af71b129a3e0170
BLAKE2b-256 1884f3888cce60833fc19de1334e5af7c32931baf36dda84a9d3fa052b2899a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp312-none-win32.whl
Algorithm Hash digest
SHA256 697abd1a80b28600e5b6a3f07306cae0b74e9cba2b2762813955b5eefb3e8505
MD5 176b1f6adc46757b7fb84a4cd306d840
BLAKE2b-256 5938eb725c24322bda2f43d4ea41e90cf5b8584d62ba16567baacf0c00878693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c98b31dcf2886e9ba0f2a8925a07dd4caa9af5e9857a1c8cb55ecaebc8153103
MD5 e73bc01f2e62cb77d720947ee1f8d13f
BLAKE2b-256 99594727165ddf503822a78d04771be56371b92cc3af0e3f38958943d1f3e053

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d9be67ac30d0a3155b9ecb241d535aee05cfccae8661c91c14065e82cbaa2b91
MD5 a8773e74009761e7893f66bfd0c99419
BLAKE2b-256 f1c46773f22f5e571144ed0dec961563cc4925ebf1d935ccb0ee7477bff5cb57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 69f02d23bad1498c534e24ff4092a90c63c17bf720001974fd04c704e61451d8
MD5 69a17fa733693669740c5ce723cee688
BLAKE2b-256 690c1a03dcee39f132e8628343c8455ac521386ed05aaebbc7d30cada52ed3a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp311-none-win32.whl
Algorithm Hash digest
SHA256 ac9be6e083d6115e34bdcf3a7539e299569eff7f47e41c7b922600e9eddaf394
MD5 8e5521738b188aca0a9b8a855cf94d14
BLAKE2b-256 a0c601702d6242f4ebada1b23c21d27093c85637b6a123718fc5e3a4e82c744d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fffef979ab405cc89d8947aed0d3f8c1cf2e4bc684c5da60d8f4644af687d66f
MD5 47703a2224c5b7b35b8294f46f3b9e95
BLAKE2b-256 935c96156d2b81696baa91ce428586a70d8c188edc079696de04128a27554fbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d7f048df082534d8142ff866ba3c6ba96d6ccd4dc43177c83cae817c5155187e
MD5 2833a0b834840dac18cacf77c2948c50
BLAKE2b-256 5b30ebf6435f5a4ce06423cf2b7dcc9855beb27f0ea689f2d2243c0dcdd7408e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 1a6e2d34e748439a0febaefaf2d9b934f2226cd141271d6d6c4f8c99461dc0a7
MD5 29000a4fbff800e3ff7c2bbcf674bc24
BLAKE2b-256 62390730ddd1f1581b8b77d828c5ed49ca207a1e9994dc74054462c08c6a6d0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp310-none-win32.whl
Algorithm Hash digest
SHA256 0241c309b54b47b4cbd4681354a5ecad034c2ae8b16902731321e650a58aff80
MD5 443f98036b2cab8178748c0820fff303
BLAKE2b-256 db68adb0b3b98c2fd586f0bee139d3f9e84b0d5fb69df360f94878bdd8d643c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6e87ed1551e39e40fe7e094c91d6b2339a42469491d24132e650c7d53e8c33e
MD5 406019d91ea067a173db3e4ed9eb5af9
BLAKE2b-256 d66875be63809eb6d3c731d4e522a02f264d1d06987dcdcf18621f15c5543a66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 fcc9c7368b72da30fd2ae0c26c156daa71e9699b0983c2220c42d143085ee068
MD5 b029eacc48d7938d0e7f86b95d072555
BLAKE2b-256 99b2c48f4271e732625619637383fa8dd7c9d7129359f2bc75be536f58f6e2e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp39-none-win32.whl
Algorithm Hash digest
SHA256 0b7041f20e9b7fb7531ed13083841c7ef17b64318b35c9af1806d0abbdc97486
MD5 22fd5b8e3c201652b4b9d7b77bcbe669
BLAKE2b-256 4f1eaeb7400e3a4d1f9d0ddc0048536f8110f58656a10df0155ddcc9f45783a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eebe4d6cd2de36207ef263f8f901086a6a5a331c8b69460b0c4c384c9e20269c
MD5 c04377f6ca3936772a44723faaab7db9
BLAKE2b-256 75f02b7128eab1424b7cc6bca42dd8a7193beab89c83e69e26e579b5c2a03c40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 82b906d0eee1105658cdadb7ef4d4c6bf17aa03e62641a1c9525fe1e2e9a5e63
MD5 0fd8b74a11a67772e5f3f3ad5bae1e3a
BLAKE2b-256 7056a9e8a2328e8d14ca72891ccedd38c18e8316de246b3d343b4f751b5dffc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.3.2-cp38-none-win32.whl
Algorithm Hash digest
SHA256 43305c70a29a3035c29287321ce18ec98e095c7a39fe5b17dffef7dc0943d7f8
MD5 e55da3b4d0139ec64c505d150dd98507
BLAKE2b-256 ddb1cb0f15438f6924a71bb186c955e5d2d789f665e95e24c64f7600a96373ae

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