Skip to content
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

using basemap on azure notebooks #422

Closed
leomiquelutti opened this issue Sep 15, 2018 · 7 comments
Closed

using basemap on azure notebooks #422

leomiquelutti opened this issue Sep 15, 2018 · 7 comments

Comments

@leomiquelutti
Copy link

Dear,

I am trying to execute some codes on the (also) free cloud service provider Microsoft Azure Notebooks for jupyter notebooks that depend on Basemap but have not been able to.

A way to fetch codes on Azure Notebooks is through !pip install package, but I didn't succeed with Basemap. Is there a way to run Basemap there?

@WeatherGod
Copy link
Member

WeatherGod commented Sep 15, 2018 via email

@phobson
Copy link
Member

phobson commented Sep 17, 2018

Just a quick note, if you're trying to install from the notebook itself, you'll need to change the command from @WeatherGod to:

!conda install -c conda-forge basemap --yes

Since you won't be able to answer the Yes/No prompt interactively

@leomiquelutti
Copy link
Author

Sorry for the late reply. Thank you guys for the comments.

The !conda install -c conda-forge basemap totally crashed my Azure Notebook environment.

I can't even say that the !conda install -c conda-forge basemap --yes will work because I still couldn't fix the environment to try it. Once I fix it, I'll get back here to give you feedback.

@rezapci
Copy link

rezapci commented Aug 3, 2019

Did you fix it ?

@rezapci
Copy link

rezapci commented Aug 3, 2019

this is the fix for notebook.azure !pip install https://github.com/matplotlib/basemap/archive/master.zip

@leomiquelutti
Copy link
Author

Nope! My azure notebook environment is still crashed - take a look at this issue. I didn't have the patience to start everything over.

I overcame the problem using mybinder

@molinav
Copy link
Member

molinav commented Jan 2, 2022

We now have precompiled binary wheels for Windows, so it should be possible to install basemap with pip as you would do with any other package (for Windows x86 and x64, Python 2.7 and 3.5-3.9):

!pip install basemap

In case you need the high-resolution datasets, you need to install them manually:

!pip install basemap-data-hires

The solution by @rezapci will not work at the moment, because the refactoring of basemap into three separate packages (basemap, basemap-data and basemap-data-hires) implied the movement of the setup.py file to another place different from the project top-level folder, so pip will not know what to do with the repository zip.

If this solution still does not solve your problem, feel free to reopen this issue or create a new one.

@molinav molinav closed this as completed Jan 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants