GithubHelp home page GithubHelp logo

lidefi87 / rimrep-training Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aodn/rimrep-training

0.0 0.0 0.0 5.02 MB

Repo to be used for training purposes

License: Creative Commons Zero v1.0 Universal

R 2.71% Jupyter Notebook 97.29%

rimrep-training's Introduction

Great Barrier Reef (GBR) Data Management System (DMS) training repository

This repository contains guidelines and example scripts for the GBR DMS training sessions.

Running example notebooks in this repository

You can either download or clone this repository to your local machine if you want to run the example notebooks included here. Below we include some instructions on how to set up you machine before you can successfully run the example notebooks.
If you are interested in learning about how to work with other datasets available in the DMS, you can check our rimrep-examples repository.

Setting up your machine

If you do not have R or Python installed in your computer, you can check the Pre-event Instructions document for more details about how to do this. If you already have them available in your machine, simply follow the steps below.

After making this repository available locally by either cloning or downloading it from GitHub, you need to ensure all packages used in this repository are installed in your local machine before running any notebooks. If any packages are not installed in your machine, you will not be able to run the example notebooks.

The good news is that you will not need to go through every notebook checking the libraries you need. We are providing some files that will automate this process for you whether you use R, Python, or both.

Note: You will only need to complete the set up steps once per machine. This should be done prior to running the notebooks for the first time. Also note that if you plan to use notebooks in one language, either R or Python, there is no need to follow the set up steps for the programming language that you do NOT need.

Instructions for R users

If you are using the R notebooks, run the following two lines in the RStudio console:

  source("Installing_R_libraries.R")  
  checking_libraries()

The lines above will run a function that automatically checks if any R libraries used in this repository are not installed in your machine. If any libraries are missing, it will install them automatically. Bear in mind that these notebooks were developed in R version 4.3.1, so you may need to upgrade your R version if you encounter any problems during package installation.

Instructions for Python users

We are also including a requirements.txt file, which contains all Python packages used in the Python notebooks included in this repository. You can use this file to create a conda environment with all the required packages. To do so, run the following command in the Anaconda Prompt (Windows) or in your terminal (MacOS, Linux):

conda env create -f requirements.txt -n rimrep

where rimrep is the name of the environment. You can use a different name for the environment if you prefer.

Note: Before running the line of code above, make sure the terminal directory matches the directory where the requirements.txt file is located (e.g, C:/user_name/Documents/rimrep-training). Otherwise, the code above will not work. If you need to change the terminal directory, you can use the cd command as follows:

cd C:/user_name/Documents/rimrep-training

Alternatively, you can specify the full path to the requirements.txt file. For example, if your terminal window is in the Documents folder, you could simply type:

conda env create -f rimrep-training/requirements.txt -n rimrep

Finally, you will need to activate this environment before you are able to run the Python notebooks included here. To do so, run the following command in your terminal window:

conda activate rimrep

When you are done running the notebooks, you can deactivate the environment by running conda deactivate in the terminal window. activate.

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.