Skip to main content

geoscilabs

Project description

# GeoSci Labs

[![binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/geoscixyz/geosci-labs/master?filepath=notebooks%2Findex.ipynb) [![azure](https://notebooks.azure.com/launch.png)](https://notebooks.azure.com/import/gh/geoscixyz/geosci-labs) [![pypi](https://img.shields.io/pypi/v/geoscilabs.svg)](https://pypi-hypernode.com/pypi/geoscilabs) [![travis](https://travis-ci.org/geoscixyz/geosci-labs.svg?branch=master)](https://travis-ci.org/geoscixyz/geosci-labs) [![License](https://img.shields.io/github/license/geoscixyz/geosci-labs.svg)](https://github.com/geoscixyz/geosci-labs/blob/master/LICENSE) [![SimPEG](https://img.shields.io/badge/powered%20by-SimPEG-blue.svg)](http://simpeg.xyz)

This is a repository of code used to power the notebooks and interactive examples for https://em.geosci.xyz and https://gpg.geosci.xyz.

The examples are based on code available in [SimPEG](http://simpeg.xyz).

## Why

Interactive visualizations are a powerful way to interrogate mathematical equations. The goal of this repository is to be the home for code that can be plugged into jupyter notebooks so that we can play with the governing equations of geophysical electromagnetics.

## Scope

The repository contains the python code to run the ipython-widget style apps in http://github.com/geoscixyz/geosci-labs. These are mainly plotting code and some simple analytics. More complex numerical simulations depend on [SimPEG](http://simpeg.xyz)

## Usage

The notebooks can be run online through [Binder](#Binder), or [downloaded and run locally](#Locally).

### Binder

[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/geoscixyz/geosci-labs/master?filepath=notebooks%2Findex.ipyn)

  1. Launch the binder by clicking on the badge above or going to: https://mybinder.org/v2/gh/geoscixyz/geosci-labs/master?filepath=notebooks%2Findex.ipynb. This can sometimes take a couple minutes, so be patient…

  2. Select the notebook of interest from the contents

  3. [Run the Jupyter notebook](#Running-the-notebooks)

![Binder-steps](https://em.geosci.xyz/_images/binder-steps.png)

### Locally

To run them locally, you will need to have python installed, preferably through [anaconda](https://www.anaconda.com/download/).

You can then clone this reposiroty. From a command line, run

` git clone https://github.com/geoscixyz/geosci-labs.git `

Then cd into geosci-labs

` cd geosci-labs `

To setup your software environment, we recommend you use the provided conda environment

` conda env create -f environment.yml conda activate geosci-labs `

alternatively, you can install dependencies through pypi ` pip install -r requirements.txt `

You can then launch Jupyter ` jupyter notebook `

Jupyter will then launch in your web-browser.

## Running the notebooks

Each cell of code can be run with shift + enter or you can run the entire notebook by selecting cell, Run All in the toolbar.

![cell-run-all](https://em.geosci.xyz/_images/run_all_cells.png)

For more information on running Jupyter notebooks, see the [Jupyter Documentation](https://jupyter.readthedocs.io/en/latest/)

## Using in a course

## Issues

If you run into problems or bugs, please let us know by [creating an issue](https://github.com/geoscixyz/em-apps/issues/new) in this repository.

## For Contributors

### Notebook Structure

Each notebook has the following structure

  • Purpose : Motivation and key concepts addressed by the notebook

  • Setup : Overview of the relevant parameters in the problem

  • Questions : Guiding questions related to the purpose

  • App : interactive visualizations

  • Explore : further questions that can be explored with the app

### Setting up your environment

## Contributing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geoscilabs-0.1.1.tar.gz (174.6 kB view details)

Uploaded Source

Built Distribution

geoscilabs-0.1.1-py2.py3-none-any.whl (220.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file geoscilabs-0.1.1.tar.gz.

File metadata

  • Download URL: geoscilabs-0.1.1.tar.gz
  • Upload date:
  • Size: 174.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for geoscilabs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a4f8cea431f3e6283d88ac4b34b74fe6b5daf4a30fe7dc0f989ebb8c1230feb2
MD5 dd34e08eb5a61537f88a3e0b715d5f1f
BLAKE2b-256 64d20fc9956a87fad73ea7ed17bcaf0dc4ccaa69a97bd90657de31c3985266ad

See more details on using hashes here.

File details

Details for the file geoscilabs-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: geoscilabs-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 220.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for geoscilabs-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f91ffc4c3cde39aa7cabaf440fef04a3be8fee85edd30881f4d6709c99168323
MD5 f1faa0e780cf0f805afcd5e7dd3ba1ba
BLAKE2b-256 7d9504f8f65fe27db82b7ef197b8d5ea9570a231e798701676a34901f5f5ba2e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page