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

How to continue? #730

Closed
FraPardi opened this issue Dec 21, 2021 · 4 comments
Closed

How to continue? #730

FraPardi opened this issue Dec 21, 2021 · 4 comments

Comments

@FraPardi
Copy link

Due to the pandemic many of us have project students working from home on Windows machines on projects needing healpy. I was able to get it installed via the Windows Subsystem for Linux, and available in a jupyter notebook.

In case useful to others I've put instructions below.

  1. Restart your computer, and follow the instructions (which appear before windows starts) to enter BIOS.
    Usually this means pressing DEL or F2 just after powering on.
    Find the option to enable virtualization (exact name will depend on your system, can google your machine brand name + "enable virtualization" for instructions)

  2. Follow these instructions to install Windows Subsystem for Linux:
    https://docs.microsoft.com/en-us/windows/wsl/install-win10
    Following the instructions for WSL version 2, and choosing Ubuntu from the store.

  3. Restart machine

  4. Open the newly installed Ubuntu application from the Start menu and follow the setup instructions.

  5. When they are complete, run these commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3 python3-pip

  1. Quit ubuntu, restart it, and run:

pip3 install numpy jupyter matplotlib healpy ipython jupyter

  1. Quit ubuntu again, restart it, and run:
    ipython notebook --no-browser

  2. Copy and paste the line starting
    http://localhost:8888/?token=
    into your normal windows web browser.

Originally posted by @joezuntz in #25 (comment)

Hi, I'm trying to install Healpy in Windows as suggested by @joezuntz. I've done all the things that are listed. Once I open the Jupyter notebook, how should I continue? Thanks for your patience.
Greetings

@zonca
Copy link
Member

zonca commented Dec 22, 2021

You should be able to run:

import healpy as hp

And then use healpy normally

@zonca
Copy link
Member

zonca commented Dec 22, 2021

For example, running commands that are in the tutorial

@FraPardi
Copy link
Author

Ok, and I am bound to use and to run through Jupyter? That is, anytime i need healpy, should i upload to jupyter and use that as a interface with WSL, where everything happens?

@zonca
Copy link
Member

zonca commented Dec 23, 2021

no, you can execute scripts with:

python3 yourscript.py

@zonca zonca closed this as completed Dec 23, 2021
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

2 participants