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

Fixes #415 - added instructions for installing pyincore-incubator #418

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manual_jb/content/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ chapters:
- file: analyses/water_facility_restoration
- file: pyincore_viz
- file: pyincore_data
- file: pyincore_incubator
- file: incore_lab
- file: webtools
- file: tutorials
Expand Down
64 changes: 64 additions & 0 deletions manual_jb/content/pyincore_incubator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# pyIncore Incubator

**pyIncore-incubator** is a component of IN-CORE that allows users to extend
the core set of analyses provided by pyincore. New analyses in
pyincore-incubator extend the pyincore BaseAnalysis class and can be chained
with existing pyincore analyses to add new functionality. The incubator gives
the community around the IN-CORE project a forum and set of resources for
innovation and investigation of new ideas and alternative ideas.

## Features
1. Example analysis showing how to extend pyincore functionality

## Prerequisites

- **pyIncore**: A user must have pyIncore package installed. See [pyIncore section](pyincore) for details.

- **Virtual environment**: We recommend that users work with virtual environment managers called [Anaconda](https://www.anaconda.com/)
or [Miniconda](https://docs.conda.io/en/latest/miniconda.html).

- Mac OS specific notes: There is a Mac specific `matplotlib` installation issue addressed
at StackOverflow [link 1](https://stackoverflow.com/questions/4130355/python-matplotlib-framework-under-macosx) and [link 2](https://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python). In a nutshell, insert line:
```
backend : Agg
```

into `~/.matplotlib/matplotlibrc` file. You must create the file (`matplotlibrc`) if it does not exist.

## Installation

1. To install pyIncore-incubator, navigate to the directory you want to use for running Jupyter Notebooks and run the
following command:
```
conda install -c in-core pyincore-incubator
```
If you have trouble installing pyincore-incubator or it is taking a long time to resolve the dependencies, try
using the libmamba solver by running the following command:

```
conda install -c in-core pyincore-incubator --solver=libmamba
```

If the installed pyincore-incubator version is not the latest or lower than the desired one, specify the version
number in installation command.
```
conda install -c in-core pyincore-incubator=0.1.0 (or your version of choice)
```
Version information for pyincore-incubator can be found in
- [https://anaconda.org/IN-CORE/pyincore-incubator](https://anaconda.org/IN-CORE/pyincore-incubator)

For update replace `install` with `update`.


2. To check that the package is installed run
```
conda list
```
It will again list all packages currently installed. You can check if **pyincore** and **pyincore-incubator**
exist in the list.

## Examples

Below are a few example Jupyter notebooks of community contributions to IN-CORE.

Examples: <br />
2 changes: 1 addition & 1 deletion manual_jb/content/pyincore_viz.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ part of pyIncore (as a dependency). We decided however to keep more interactive
An example would be for example geo-referenced mapping with [ipyleaflet](https://ipyleaflet.readthedocs.io/en/latest/).

## Features
1. Geospatial visualization such as tornado path or earthquake raster data, vector data (shapfile) and network data.
1. Geospatial visualization such as tornado path or earthquake raster data, vector data (shapefile) and network data.
2. Data visualization, graphs of data such as statistical curves including pre-processing.
3. Creates map window from inventory of multiple csv files stored in a folder (in progress).

Expand Down
Loading