GithubHelp home page GithubHelp logo

eoas5004_earthsystemmodeling's Introduction

EOAS 5004: Earth System Modeling

This repository contains tools and Jupyter notebooks for the course EOAS 5004: Earth System Modeling taught in Earth, Ocean and Atmospheric Sciences Thrust at The Hong Kong University of Science and Technology (Guangzhou).

The Python package for process-oriented climate modeling climlab by Brian E. J. Rose at University at Albany is used in this course. Course materials are adapted from The Climate Laboratory by Brian E. J. Rose.

Set up the environment on JupyterHub

We are using The Littlest JupyterHub (TLJH) here. The TLJH is installed on our own server in the directory /opt/tljh. Admin access is required to install the environment for all users. But users can also install a local environment for themselves in a similar way (without using sudo -E).

Create a new Python environment

Open a terminal from the JupyterHub and create a Python environment eoas5004 from the file environment.yml.

sudo -E conda env create --file environment.yml

This will create a new Python environemnt at /opt/tljh/user/envs/eoas5004 with all the necessary packages we need. These packages are listed in the environment file environment.yml, which can be generated by the following command from an existing environment installed manually by conda install.

conda env export --from-history > environment.yml

Create a new Jupyter kernel

First activate the new Python environment.

conda activate eoas5004

Create a new Jupyter kernel from the Python environment eoas5004 with a display name of "EOAS 5004".

python -m ipykernel install --user --name eoas5004 --display-name "EOAS 5004"

This creates a local kernel at $HOME/.local/share/jupyter/kernels/eoas5004. To share this kernel with all users on JupyterHub, move this kernel to /opt/tljh/user/share/jupyter/kernels/.

sudo mv ~/.local/share/jupyter/kernels/eoas5004 /opt/tljh/user/share/jupyter/kernels/

eoas5004_earthsystemmodeling's People

Contributors

qingli411 avatar

Watchers

 avatar  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.