Giter Site home page Giter Site logo

cq-intro-python's Introduction

cq-intro-python

Calcul Québec training : Introduction to Programming with Python - PYT101

Content

The content of this workshop is based on Software Carpentries - Programming with Python

Run locally

  1. Create a virtual environment
python -m venv venv-pyt101
  1. Activate the environment
source venv-pyt101/bin/activate
  1. Install requirements
pip install -r requirements.txt  # or requirements-dev.txt if developping
  1. Run jupyterlab in your browser
jupyter lab --ip=127.0.0.1

Development

pip install -r requirements-dev.txt

1. Sync markdown to notebooks

Synchronize solutions markdown to their associated notebooks

jupytext --sync solutions/*.md

2. Create HTML

Create executed HTML|ipynb solution files for the instructor

jupyter nbconvert --to {html|notebook} --execute solutions/*.ipynb

Or overwrite in-place notebooks since their content origin from the markdown

jupyter nbconvert --to notebook --inplace --execute solutions/*.ipynb

3. Empty notebooks for participants

Empty all solutions notebooks and output in current directory

python scripts/participant_empty.py solutions/*.ipynb -o .

cq-intro-python's People

Contributors

ccoulombe avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.