Giter Site home page Giter Site logo

tongyx361 / nbdev-template-tongyx361 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 370 KB

nbdev template customed by Yuxuan Tong

Home Page: https://tongyx361.github.io/nbdev-template-tongyx361/

License: MIT License

Jupyter Notebook 44.04% CSS 6.57% Python 34.65% Shell 14.73%

nbdev-template-tongyx361's Introduction

nbdev Template @tongyx361

Setup

We recommend:

  • using Conda to set up the basic Python environment and install some non-Python packages like git-lfs when without the root permission;
  • using pip to manage the Python packages because some packages are only available via pip.

Run the following commands to setup the basic environment and install most dependencies:

git clone https://github.com/tongyx361/nbdev-template-tongyx361.git
cd nbdev-template-tongyx361
# Configure settings.ini, environment.yml, pkg_name
conda env create -f environment.yml
conda activate myenv
pip install -r requirements.txt

For common users/developers, please just run the following command the install the dart-math package:

pip install -e "."

For intended contributors, we recommend installing the package with the dev extras and setting up the pre-commit hooks by running:

pip install -e ".[dev]"
pre-commit install
conda install quarto # For nbdev

Contribution Guidelines

File Structure

nbdev_template_tongyx361
├── data
├── utils # Repository utilities
├── pkg_name # Package code for common utilities
├── nbs # Notebooks and other files to run tests and generate documentation with https://nbdev.fast.ai
├── [cfgs] # Configurations
├── [pipelines] # Reusable (Python / Shell) scripts or notebooks
└── [scripts] # One-time scripts

Checklist Before Commit

Run the prepare-commit.sh to clean the notebooks and export scripts for pipeline notebooks, generate documentation, run tests, render README if needed:

bash utils/prepare-commit.sh

nbdev-template-tongyx361's People

Stargazers

Shawn/Yuxuan Tong avatar

Watchers

Shawn/Yuxuan Tong 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.