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.0.tar.gz (26.9 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.0-cp313-cp313-macosx_11_0_arm64.whl (836.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

wry_bokeh_helper-0.4.0-cp312-cp312-win32.whl (502.5 kB view details)

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

wry_bokeh_helper-0.4.0-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.0-cp311-cp311-win_amd64.whl (530.7 kB view details)

Uploaded CPython 3.11Windows x86-64

wry_bokeh_helper-0.4.0-cp311-cp311-win32.whl (502.4 kB view details)

Uploaded CPython 3.11Windows x86

wry_bokeh_helper-0.4.0-cp311-cp311-macosx_11_0_arm64.whl (837.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

wry_bokeh_helper-0.4.0-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.0-cp310-cp310-win_amd64.whl (530.8 kB view details)

Uploaded CPython 3.10Windows x86-64

wry_bokeh_helper-0.4.0-cp310-cp310-win32.whl (502.5 kB view details)

Uploaded CPython 3.10Windows x86

wry_bokeh_helper-0.4.0-cp39-cp39-win_amd64.whl (530.9 kB view details)

Uploaded CPython 3.9Windows x86-64

wry_bokeh_helper-0.4.0-cp39-cp39-win32.whl (502.7 kB view details)

Uploaded CPython 3.9Windows x86

wry_bokeh_helper-0.4.0-cp38-cp38-win_amd64.whl (530.6 kB view details)

Uploaded CPython 3.8Windows x86-64

wry_bokeh_helper-0.4.0-cp38-cp38-win32.whl (502.4 kB view details)

Uploaded CPython 3.8Windows x86

File details

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

File metadata

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

File hashes

Hashes for wry_bokeh_helper-0.4.0.tar.gz
Algorithm Hash digest
SHA256 dfb992a336d3ac5a55f5afc70f59a4187a49dd6cc9017654df8e78fb0431be8a
MD5 f5e87e4d65dec873b16e7967897f7f50
BLAKE2b-256 5efc70d1b87917c7fec6341747ec145a9e7e70b999c9474327bf1f29e255b9b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7e95d89e677b2d16a7896e7abc4c64ba5fdb8afa1b0a206c3a9e63053ff9964
MD5 e1fdbe6b85a6c6b184eea51a9c726904
BLAKE2b-256 c51030a3b9572d7ea49207f230746c8d4fb18f3fbd3987569b86b9fe04f3dc49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 04524d9d7c165f15fc27d92c1ac17279ce189a152142c293d1bc771f9f7eec39
MD5 3e7d723a759f41ee48daf027fa5f3b2a
BLAKE2b-256 18f1ee587ff0003b4a184ef37aa1036ccb7682147e95a5ab3403654519012fa3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e123872bd63145c45145935910c0cf295990141a47d0f83a6d41d3126f431c92
MD5 856544a6a530774f2dc60fa219dcbc9f
BLAKE2b-256 bb0cecf3b473dd1596864b582b07bef7c489c0383e531f77d2f5174f6a48883f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12467c3b7eda05b12615c68582c4fe71651dff449de9b4215d25ce0a5e93d86a
MD5 6b132cf46d955924264b9b872c9d6d11
BLAKE2b-256 c4345d044e4e5f427f886f765147db4d31a6ed913c78daf0bf0675008cd2b2dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 69941fb93e5e67fc8314306166b27a8eeb308163e420eada117146addc9d0737
MD5 c973f61379862ea21f7f3977926edc86
BLAKE2b-256 f4ed526950394bf619feead0346e894238087bedf7c7b3fe3de4ad5cb0de4209

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f83cbe8a3c9371b05d24bb09aea6405c88b2583eb9049f4bf5a686b77fd23477
MD5 969c5321dd40f0ac512f6de485a5c663
BLAKE2b-256 3b8d8bade1cea234689b370fba226f267b545b1804954df4a2e3a4856ddf22e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a420a7fa609340941478a5852a6c2b6396dafe0c356a2ae0307b92ec8cf8f319
MD5 29d7fce55bd010841652e4013c4ee070
BLAKE2b-256 eae957f824d7422c6694c791097b60095998781d19ea8412615b28c6ba7ce85c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 675744c3fadef0556928e78f4675fdeafdfdb3e5a9d3684e471429cf582a6b93
MD5 57be3865ea06f07cdb59f7e711235dc0
BLAKE2b-256 8ae0c4feb3816ee9ff1fffec60890f60b624c8257bde9f5f4891b44e574ff653

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c13af288f4380f9b95e3b006c4250fd56cd71f136e052a05cd6130b0817887b0
MD5 6a17eacf7e6846deb3358002b683137c
BLAKE2b-256 f49b1c696be74a63d3486808358c0ebd3eeff7330c9e9428ea005a3fc44af8f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cc89cb713ef552805e31443408422e1d6414624c2e39168e3dfdf13bea370687
MD5 43407f4669d5a0846ca2213a77157172
BLAKE2b-256 6f80b5a110e32143098a1e025fa33cf02e263ac5b9af386e102980a448253e7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1ce86ce97c4eb2fc71a8e9ec978b8cd3a297f3c92dd4afc72dd8bff144619cde
MD5 c8b0f8718ea1d0b1f602371cc1099db4
BLAKE2b-256 a8928470c5f053cbd56a029addf699cff5aa3a9bc672a3d11cfbcd713c87b01c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ca5254f03487544aeeb81c4b60afb7694c53459580e4ebce5e809848fef93383
MD5 776c8dd00af71417d598396a5baf6f9c
BLAKE2b-256 64871b64382990fa9d6f8b09f8858c96cc3125bd1c0773f1de6f96eba6199181

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d9fac378044f3618a408fb3b3597f6c0c062ada787b4a9daebef208c2f46f4b7
MD5 a19c76143f2dd456fe487aca174e452e
BLAKE2b-256 1ef7a5716c370be83da8ef486ab1026cf483bf8d8a23a1ab0bc683129abf513c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5aa73b9dd961dfa0bf93cacbc3d0542e12cb2f072513b34cf1be6591a20f29c9
MD5 701c8ff62a9e1e6a30f91bad69620521
BLAKE2b-256 0ba20a1345830aaaac735ea785cd7548c96e45ba780cf39876b885ffe1f79fdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wry_bokeh_helper-0.4.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 20cfae5e826eed043525e5d91273194e575d73457fb589557c0488dc8ec0563e
MD5 e8f60211c256e2c95bf914ae511e36ba
BLAKE2b-256 38ab6693e12e82dae1c3758f7d89eb18c611cc51c8415212e70f93a93a3100aa

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