Giter Site home page Giter Site logo

hayesla / espdsummerschoolsunpy Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 13.45 MB

A hands-on tutorial for the ESPD summer school Apr 2024

Home Page: https://oh.geof.unizg.hr/index.php/en/meetings/espd-school-2024

License: BSD 3-Clause "New" or "Revised" License

Jupyter Notebook 100.00%

espdsummerschoolsunpy's Introduction

SunPy tutorial

ESPD Summer School Apr 2024

This is a reporsitory to hold all the notebooks that will be used in the hands-on session for an introduction to the SunPy project and ecosystem at the European Solar Physics Division (ESPD) summer school that takes place in Dubrovnik 29 Apr - 3 May 2024.


Resources

Below are a few helpful links for finding out more about SunPy, including our webpage, documentation, and our Matrix channel:

How to run these notebooks:

===========================================

Run in Binder

If you don't want to run these locally, or you are having issues with getting them started - all the notebooks in this repository can be run with binder. Click here Binder to launch binder and then run the notebooks in your browser.

Note It may take a few minutes to load up the first time you launch it.

Run locally

To run these notebooks locally, I'd recommend you follow the next steps. The main things here is that you have the necessary packages installed. Mainly, you'll need sunpy 5.1. If you follow below, we set up a virtual env and install the required packages needed for this tutorial, which are listed in the environment.yml file in this repository.

If you don't want to follow the next steps, you can also check out our sunpy installation page.

1. Download the files using git

If you want to run these notebooks locally you can clone this reposity (or fork it and then clone it from your page). To do this run this command:

  • git clone https://github.com/hayesla/ESPDSummerSchoolSunPy.git

If you have first forked it then you can run:

  • git clone https://github.com/<username>/ESPDSummerSchoolSunPy.git

You can also download these notebooks by clicking on green code button on the top right hand side, and then by clicking download zip.

2. Create a conda environment

We recommend creating a new conda environment and install the requried packages used in these notebooks.

The python packages required to run these workshop notebooks are listed in the environment.yml file in this repository. First, move into the directory:

  • cd ESPDSummerSchoolSunPy

To create a new environment with these packages installed you can open a terminal and type:

  • conda env create -f environment.yml

This will then create a new conda environment called espd_summer_school (this name is listed in the enviroment.yml file).

You can then activate this environment by typing:

  • conda activate espd_summer_school

Note your prompt should change and now have espd_summer_school near the start. If you want to list all your conda environments you can type conda info -e. You should see base which is your base enviroment, the espd_summer_school one, and any others you have created!

3. Start a jupyter notebook!

Once you have your environment activated (remember to first type conda activate espd_summer_school) then in your local ESPDSummerSchoolSunPy repository type

  • jupyter lab

This should then open the notebooks in your default browser!

If you are having any issues - just make sure first that you are in the espd_summer_school environment before you start jupyter.

Happy coding!!

4.1 Updating the environment.yml file

If an update is made to the environment.yml file then you will need to type

  • conda env update --file environment.yml --prune

This may be important after you have down a git pull (see below 4.)

4.2 Installed new packages in this environment

You can also install new packages in this environment by using conda install <package>or by using pip! (pip install <package>)

Given by Laura A. Hayes (ESA/ESTEC) with many thanks to Will Barnes (AU/NASA GSFC), Stuart Mumford (Aperio Software), Albert Shih (NASA GSFC), David Stansby (UCL) and the SunPy community.

espdsummerschoolsunpy's People

Contributors

hayesla avatar

Stargazers

Amaia Razquin avatar Will Barnes avatar

Watchers

 avatar

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.