All Projects → nbQA-dev → Nbqa

nbQA-dev / Nbqa

Licence: mit
Run any standard Python code quality tool on a Jupyter Notebook

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Nbqa

Deep learning tutorial
[ko] 패스트캠퍼스 강의 자료
Stars: ✭ 193 (+0%)
Mutual labels:  jupyter-notebook
Mobile Yolov5 Pruning Distillation
mobilev2-yolov5s剪枝、蒸馏,支持ncnn,tensorRT部署。ultra-light but better performence!
Stars: ✭ 192 (-0.52%)
Mutual labels:  jupyter-notebook
Ctr nn
基于深度学习的CTR预估,从FM推演各深度学习CTR预估模型(附代码)
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook
Nn compression
Stars: ✭ 193 (+0%)
Mutual labels:  jupyter-notebook
Tensorflow
Project containig related material for my TensorFlow articles
Stars: ✭ 2,371 (+1128.5%)
Mutual labels:  jupyter-notebook
Open Visualizations
Visualizations based on best open science practices.
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook
Learned Correspondence Release
Code release for "learning to find good correspondences" CVPR 2018
Stars: ✭ 192 (-0.52%)
Mutual labels:  jupyter-notebook
Sklearn Benchmarks
A centralized repository to report scikit-learn model performance across a variety of parameter settings and data sets.
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook
Machinelearningnotebooks
Python notebooks with ML and deep learning examples with Azure Machine Learning Python SDK | Microsoft
Stars: ✭ 2,790 (+1345.6%)
Mutual labels:  jupyter-notebook
Kite Python Blog Post Code
Code snippets from Kite blog posts
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook
One Hundred Layers Tiramisu
Keras Implementation of The One Hundred Layers Tiramisu: Fully Convolutional DenseNets for Semantic Segmentation by (Simon Jégou, Michal Drozdzal, David Vazquez, Adriana Romero, Yoshua Bengio)
Stars: ✭ 193 (+0%)
Mutual labels:  jupyter-notebook
Sigopt Examples
Optimization Examples with SigOpt
Stars: ✭ 193 (+0%)
Mutual labels:  jupyter-notebook
Intro To Dsp With Python
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook
Spell Checker
A seq2seq model that can correct spelling mistakes.
Stars: ✭ 193 (+0%)
Mutual labels:  jupyter-notebook
Snippet
just some code snippet
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook
Extendedtinyfaces
Detecting and counting small objects - Analysis, review and application to counting
Stars: ✭ 193 (+0%)
Mutual labels:  jupyter-notebook
Coursera Deep Learning Specialization
Notes, programming assignments and quizzes from all courses within the Coursera Deep Learning specialization offered by deeplearning.ai: (i) Neural Networks and Deep Learning; (ii) Improving Deep Neural Networks: Hyperparameter tuning, Regularization and Optimization; (iii) Structuring Machine Learning Projects; (iv) Convolutional Neural Networks; (v) Sequence Models
Stars: ✭ 188 (-2.59%)
Mutual labels:  jupyter-notebook
Compstats
Code for a workshop on statistical interference using computational methods in Python.
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook
Jupyterhub Deploy Teaching
Reference deployment of JupyterHub and nbgrader on a single server
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook
Quantecon Notebooks Python
A Repository of Notebooks for the Python Lecture Site
Stars: ✭ 194 (+0.52%)
Mutual labels:  jupyter-notebook

nbQA

Run any standard Python code quality tool on a Jupyter Notebook

tox codecov pre-commit

versions chat docs

demo

Table of contents

🎉 Installation

In your virtual environment, run one of the following:

  • python -m pip install -U nbqa (minimal installation)
  • python -m pip install -U nbqa[toolchain] (install supported code quality tools as well)
  • conda install -c conda-forge nbqa (if you use conda)

🚀 Examples

Pre-commit (recommended)

Here's an example of how to set up some pre-commit hooks: put this in your .pre-commit-config.yaml file (see usage as pre-commit hook)

- repo: https://github.com/nbQA-dev/nbQA
  rev: 0.5.9
  hooks:
    - id: nbqa-black
      additional_dependencies: [black==20.8b1]
      args: [--nbqa-mutate]
    - id: nbqa-pyupgrade
      additional_dependencies: [pyupgrade==2.10.0]
      args: [--nbqa-mutate, --py36-plus]
    - id: nbqa-isort
      additional_dependencies: [isort==5.7.0]
      args: [--nbqa-mutate]

Command-line

Reformat your notebooks with black:

$ nbqa black my_notebook.ipynb --nbqa-mutate
reformatted my_notebook.ipynb
All done! ✨ 🍰 ✨
1 files reformatted.

Sort your imports with isort:

$ nbqa isort my_notebook.ipynb --nbqa-mutate
Fixing my_notebook.ipynb

Upgrade your syntax with pyupgrade:

$ nbqa pyupgrade my_notebook.ipynb --py36-plus --nbqa-mutate
Rewriting my_notebook.ipynb

See command-line examples for examples involving autoflake, check-ast, doctest, flake8, mypy, and pylint.

🥳 Used by

Take some inspiration from their config files 😉

💬 Testimonials

Michael Kennedy & Brian Okken, hosts of the Python Bytes podcast:

This is really cool. I think it brings so much of the code formatting and code analysis, clean up to notebooks, which I think had been really lacking

Nikita Sobolev, CTO at wemake.services:

It is amazing!

Alex Andorra, Data Scientist, ArviZ & PyMC Dev, Host of 'Learning Bayesian Statistics' Podcast:

well done on nbqa @MarcoGorelli ! Will be super useful in CI

Matthew Feickert, Postdoc at University of Illinois working on LHC physics:

nbqa in your pre-commit hooks along with @codewithanthony 's pre-commit CI service is amazing! Everyone using Jupyter notebooks should be doing this.

Girish Pasupathy, Software engineer and now core-contributor:

thanks a lot for your effort to create such a useful tool

Simon Brugman, Data scientist & pandas-profiling dev:

nbQA helps us to keep notebooks to the same standards as the rest of the code. If you're serious about your code standards, you should keep them consistent across both notebooks and python scripts. Great addition to the ecosystem, thanks!

Bradley Dice, PhD Candidate in Physics & Scientific Computing:

nbqa is a clean, easy to use, and effective tool for notebook code style. Formatting and readability makes a huge difference when rendering notebooks in a project's documentation!

👥 Contributing

I will give write-access to anyone who makes a useful pull request - see the contributing guide for details on how to do so.

Thanks goes to these wonderful people (emoji key):


Marco Gorelli

💻 🚧 👀 ⚠️ 🤔

Sebastian Weigand

🔧 👀 📖 🤔

Girish Pasupathy

💻 🚇 🐛 👀 🤔

fcatus

🚇

HD23me

🐛

mani

🤔 🚇

Daniel Mietchen

🤔

Michał Gacka

🐛

Happy

📖

Nat Taylor

🤔 💻 🔧 🐛

Caio Ariede

📖

Nikita Sobolev

🤔 🐛 📖

Amichay Oren

🤔

pylang

🤔

Henry Schreiner

🐛

Kaiqi Dong

📖

Simon Brugman

🐛

John Sandall

🐛

Nathan Cooper

🐛

agruenberger

🐛

Rafal Wojdyla

🐛

Bradley Dice

🤔 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].