Giter Site home page Giter Site logo

proejct-demo's Introduction

Proejct Demo for Linux.

  1. Create a Git Repository
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/stormliucong/proejct-demo.git
git push
  1. Building a Project folder structure
|-- project-demo
|   |-- data
|   |   |-- example.csv
|   |-- notebooks
|   |   | -- example.ipynb
|   |-- src
|   |   | -- __init__.py
|   |   | -- example.py
|   |-- requirements.txt
|   |-- README.md
  1. Create a Virtual Environment
# install pip3 and virtualenv
sudo apt-get install python3-pip -y
# create the virutual environment in the project root
pip3 install virtualenv
virtualenv -p python3 .venv
# Or use python directly.
python3 -m venv .venv # hidden file with prefix .
# activate the virtual environment
source .venv/bin/activate
# install packages you will need
pip3 install -r setup/requirements.txt
  1. Create a Custom Kernel.
python3 -m ipykernel install — user — name project_name_env — display-name "my kernel"
  1. Setup .gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Environments
.venv
  1. freeze requirements.txt
pip freeze > requirements.txt
  1. push to github
git add .
git commit -m 'updated'
git push

proejct-demo's People

Contributors

stormliucong 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.