-
Notifications
You must be signed in to change notification settings - Fork 795
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
Geoshape docs revamp 5.0 #2699
Geoshape docs revamp 5.0 #2699
Conversation
I just tried building the docs in a fresh env and new repo clone on the master branch and I run into the same error. I tried to troubleshoot a bit but I can't figure out what is wrong. I vaguely remember encountering that or something similar before, but I believe that the fix then was to install altair_saver via pip and then do the It's especially odd as I am on an Ubuntu box and follow the same installation steps as in our CI workflow which is also ubuntu-based... https://github.com/altair-viz/altair/blob/master/.github/workflows/docbuild.yml |
Ok so it worked for me to rely on selenium instead of the vega packages via npm. I had to run the following to install chrome driver, I guess the GitHub CI Ubuntu image comes with this package pre-installed.
|
Ah, yeah. Thanks🙏! |
Building docs locally actually works with Few debug messages during doc building that require some attention (base) mattijnvanhoek@Mattijns-MacBook-Pro doc % make html
WARNING: [autosummary] failed to import altair.TopLevelParameter.
Possible hints:
* AttributeError: module 'altair' has no attribute 'TopLevelParameter'
* ImportError:
* ModuleNotFoundError: No module named 'altair.TopLevelParameter'
/Users/mattijnvanhoek/miniconda3/lib/python3.9/site-packages/recommonmark/parser.py:75: UserWarning: Container node skipped: type=document
warn("Container node skipped: type={0}".format(mdnode.t))
/Users/mattijnvanhoek/mattijn/altair/altair/vegalite/v5/api.py:331: AltairDeprecationWarning: Use 'value' instead of 'init'.
warnings.warn(
<string>:3: UserWarning: Geometry is in a geographic CRS. Results from 'centroid' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
The HTML pages are in _build/html. |
That's great! I'm looking forward to this being the new default in Altair. I will try to look into this (and the other) PR at the end of next week, sorry for the long review time, just being swamped with things at work at the moment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to hold you up, so I found some time to work on this. As I said before in the other repo: I love these docs! It's exciting to see how much easier it is to work with Altair using geopandas like this, and it solves many of the issues I have had in the past. I like the advanced sections you have too, they are great for people who wants to go further.
Also a headsup that I see a lot of this warning when buildingthe worldmap example in the docs:
|
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
I know this is a dumb question, but is there a place for me to see these compiled docs?! I've never tried using any of this "geography" functionality before. |
I use the method as is documented here https://github.com/altair-viz/altair/blob/master/RELEASING.md:
Make sure you have |
I'll address this in #2758 |
Same as #2688, but from direct fork from altair repo. Like this it should be easier to stay in-sync.
When I try to build the docs locally I get the following error:
I don't think it is related to this PR, but I like to test locally. @joelostblom, did you face this issue before?