Closed Guiraiol closed 4 months ago
Hi @Guiraiol , try using a file uri for the file. e.g. file:///home/usa_110m.json
. (note there are three forward slashes. The first two are for the file uri, the third is for the filesystem root).
Thank you for your prompt reply @jonmmease. That worked perfectly. I tried to use this with two slashes and I assumed that that wasn't the way. I just want to ask if you can update the documentation to add this at Low-level Kaleido Scope Developer API, because the given example for plotlyjs use a local path.
Great! I added the documentation tag to remind us to come back to this. The semi-tricky thing is that for implementation reasons, using a local path (without the file uri) is fine for plotlyjs
.
Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson
I'm trying to export a static choropleth but I can't get through some topojsons. I'll use Choropleth map using GeoJSON as an example.
Enviroment
Docker image centos8:latest Python 3.8.10 from miniconda (https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh) pip 21.2.4 plotly==5.2.1 plotly-geo==1.0.0 kaleido==0.2.1
My proxy is set at HTTPS_PROXY, HTTP_PROXY, https_proxy and http_proxy and pandas and urlopen at the example can access the URLs, but plotly/kaleido can't.
Code
And it raises this error:
I tried to download this file and provide locally using a scope:
and
But both ways raise this error:
So, there's a way to provide these topojsons offline, or a way to configure kaleido proxy?