Giter VIP home page Giter VIP logo

Comments (11)

pybokeh avatar pybokeh commented on June 12, 2024 5

@ResidentMario Thank you! All I did was run:

import quilt
quilt.install("ResidentMario/geoplot_data")

and was then able to run the example.

from geoplot.

ResidentMario avatar ResidentMario commented on June 12, 2024 1

Went well so far! We'll see if this develops any hiccups.

from geoplot.

ResidentMario avatar ResidentMario commented on June 12, 2024 1

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.

from geoplot.

choldgraf avatar choldgraf commented on June 12, 2024

I think you should store the data online someplace stable (maybe figshare) and use the module to download the data to ~/geoplot_data folder when the person requests it. IME that's the best long-term solution!

from geoplot.

ResidentMario avatar ResidentMario commented on June 12, 2024

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 (quilt) that I don't need to worry about.

from geoplot.

choldgraf avatar choldgraf commented on June 12, 2024

very interesting! I hadn't heard of that before. Lemme know how it goes!

from geoplot.

pybokeh avatar pybokeh commented on June 12, 2024

Hello, how do I install the geoplot_data? I installed quilt via pip install quilt. Then when I tried to run the example notebook tutorial and do the import:
from quilt.data.ResidentMario import geoplot_data

It says the module is not found. So I'm assuming I'm missing a step or need to install it somehow?? I tried pip install geoplot_data or pip install geoplot-data, but those packages don't exist. Perhaps can we have the geoplot_data pip-installable too?

from geoplot.

ResidentMario avatar ResidentMario commented on June 12, 2024

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.

from geoplot.

roaringcat avatar roaringcat commented on June 12, 2024

Hello,I get the same problem and the page above cound not be found.
How can I solve this to get the geoplot_data?
Thanks.

from geoplot.

roaringcat avatar roaringcat commented on June 12, 2024

Oh I miss the important code above,thank you very much!
I get the geoplot_data finally!

from geoplot.

ResidentMario avatar ResidentMario commented on June 12, 2024

For future reference for anyone visiting this GH issue, the system for getting example data in geoplot has changed again. There is now a geoplot.datasets.get_path method which serves a URL to a specific example dataset from the ResidentMario/geoplot-data repository on GitHub. Now that geopandas has the ability to read URLs, grabbing an example dataset is as easy as:

import geoplot as gplt
import geopandas as gpd

gpd.read_file(gplt.datasets.get_path("world"))

This feature was introduced in [email protected], and is used throughout the updated documentation.

This removes the external dependency on quilt and the managerial overhead that comes with having yet another package manager.

from geoplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.