New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make dataset example self-contained #41
Comments
I think you should store the data online someplace stable (maybe figshare) and use the module to download the data to |
I asked Reddit this question (here) and Jake VanderPlas actually recommended Quilt, a startup'd data package management tool, in the comments. I'd heard of it before, but was wary of trusting a startup to continue existing long-term...but they've been around for a little while now, and it's got a VanderPlus thumbs-up, so I've gone ahead and integrated that in. And it works great! Lets me delegate the problem of dealing with file downloads to a dedicated package ( |
very interesting! I hadn't heard of that before. Lemme know how it goes! |
Went well so far! We'll see if this develops any hiccups. |
Hello, how do I install the geoplot_data? I installed quilt via It says the module is not found. So I'm assuming I'm missing a step or need to install it somehow?? I tried |
There's a CLI command or a Python statement you can run to get the data locally, described here: https://docs.quiltdata.com/use-a-package.html I'll make this clearer the next time I revise the docs. |
@ResidentMario Thank you! All I did was run:
and was then able to run the example. |
Hello,I get the same problem and the page above cound not be found. |
The code snippet pybokeh included in his comment should do the job. I think the new URL is https://docs.quiltdata.com/get-started/step-by-step. |
Oh I miss the important code above,thank you very much! |
For future reference for anyone visiting this GH issue, the system for getting example data in import geoplot as gplt
import geopandas as gpd
gpd.read_file(gplt.datasets.get_path("world")) This feature was introduced in This removes the external dependency on |
I've consolidated the example datasets under a
geopandas
-likegeoplot.datasets
domain (here).This has the beneficial effect that it makes all of the examples in the
geoplot
documentation, especially the ones in the gallery, immediately reproducible for the user. However, the drawback is that I also have to distribute the example data with the library. After hewing and hawing every which way, I've gotten that down to a ~10 MBexamples.zip
file.@choldgraf I would like your feedback on this idea. Is a 10 MB add-on like this an acceptable load for such a library? Or should I maybe provide an
nltk
-like downloader instead?The text was updated successfully, but these errors were encountered: