Git Product home page Git Product logo

smrt_tuto_eccc's Introduction

SMRT_tuto_ECCC

Instead of figuring out how to run the notebook in this repository by yourself, you can try binder: Binder

NB: the MyBinder service is free. It may be slow to launch and may experience downtime or general slowness due to varying system loads

Running this tutorial locally

You will need to have git installed on your system: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

SMRT is developed with the highest stable version of Python but also work with python 2.7 series and 3.4 or higher. Anaconda (or the more compact miniconda) is the recommended distribution to get Python as it contains numerous packages needed for scientific computations and analysis. This is an open source distribution available for Linux, Windows and MacOS.

In an anaconda/miniconda prompt, first clone this repository:

git clone https://github.com/JulienMeloche/SMRT_tuto_ECCC

then create an virtual environment for SMRT:

conda env create -f environment.yml

then activate the environment:

conda activate jm-smrt

NB: Here we use the environment name jm-smrt but you can choose to name your environment whatever you want with the -n envname argument to conda env create.

With your environment ready, you have two option to install SMRT itself:

  1. Install smrt from a cloned version of the main SMRT GitHub repository (recommended)
  2. Install smrt from pypi (not recommended due to not including latest updates)

1. Install from a cloned repository

Make sure you are inside the SMRT_tuto_ECCC repository that you cloned earlier, and run the following commands:

git clone https://github.com/smrt-model/smrt
conda activate jm-smrt
cd smrt
pip install .
cd ..

This will install smrt into the jm-smrt conda environment we created earlier. When you want to run the notebook, simply type:

jupyter notebook SMRT_tuto_ECCC.ipynb

a web browser should launch and you can begin using the notebook.

If/when you need to pull the latest changes from the SMRT repository, it will be as easy as:

cd /path/to/smrt_tuto_ecc/folder/smrt
conda activate jm-smrt
git fetch && git pull --ff-only
pip install . --upgrade
cd ..

2. Install from PyPI

While this method is "simpler", you will be limited by having to wait for SMRT developers to push new updates to PyPI. To install this way:

conda activate jm-smrt
pip install smrt

That's it! Now you should be able to run jupyter as before:

jupyter notebook SMRT_tuto_ECCC.ipynb

Optional extra: the SMRT developers also provide some tutorials for SMRT that may interest you: https://github.com/smrt-model/tutorials

smrt_tuto_eccc's People

Contributors

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