☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Tile server for non-geographical images

Community Supporttileserver
estebvac
estebvac

Hi, and thanks for the amazing library. I am trying to use bokeh to display large microscopic data, which can be accessed through a tile server. The data is available in Microdraw which works with OpenSeadragon. The tile server uses the following syntaxes, https://microdraw.pasteur.fr/vervet/vervet_files/{level}/{X}_{Y}.jpg .

I tried to read the tiles directly with bokeh with the following script:

from bokeh.models import MercatorTileSource
from bokeh.plotting import figure, show

url = 'https://microdraw.pasteur.fr/vervet/vervet_files/{Z}/{X}_{Y}.jpg'
tile_provider = MercatorTileSource(url=url,
						x_origin_offset=0,
						y_origin_offset=0,
						initial_resolution=500,
						max_zoom=20)
p = figure(x_range=(500,0), y_range=(0,500), width=800, height=800)
p.add_tile(tile_provider)
show(p)

Bokeh can retrieve the tiles, but the order and the dimensions do not correspond to the image. The order of the Y-axis is inverted, and the zooming is not consistent, as you can see this video.

Thanks in advance for your help.

⌁   Link to post
Bryan
Bryan

Have you tried the other tile sources, e.g. TMSTileSource or WMTSTileSource? They have different characteristics re: origin location, etc. so you need to choose the one that actually matches your tile server format.

⌁   Link to post

End of archived discussion · Replies are disabled