Metadata-Version: 2.1
Name: jupyter-reorder-python-imports
Version: 0.0.2
Summary: Reorder python imports for Jupyter notebook and lab
Home-page: https://github.com/Stoops-ML/jupyter-reorder-python-imports
License: MIT
Author: Daniel Stoops
Author-email: danielstoops25@gmail.com
Maintainer: Daniel Stoops
Maintainer-email: danielstoops25@gmail.com
Requires-Python: >=3.8.1,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: reorder-python-imports (>=3.10.0,<4.0.0)
Description-Content-Type: text/markdown

# jupyter-reorder-python-imports

[reorder-python-imports](https://github.com/asottile/reorder-python-imports) is a great library. Now available in Jupyter notebook and lab.

## What does it do?
Once loaded, automatically format python imports according to reorder-python-imports using their [formatting methods](https://github.com/asottile/reorder-python-imports#what-does-it-do).

## Quickstart
`python -m pip install jupyter-reorder-python-imports`

Import into Jupyter using two methods:
```
%load_ext jupyter_reorder_python_imports
```
Or,
```
import jupyter_reorder_python_imports

jupyter_reorder_python_imports.load()
```
The latter method allows for specifying the minimum python version (as a tuple of integers) to be used for [removing obsolete `__future__` imports](https://github.com/asottile/reorder-python-imports#removing-obsolete-__future__-imports). For example, `jupyter_reorder_python_imports.load(min_python_version=(3,9))` specifies 3.9 as the minimum python version.

See the [examples](examples/) folder for some examples.

## Testing
Tests use playwright. Prior to running the tests execute: `python -m playwright install --with-deps firefox`

If desired, pass the `--no-headless` flag to pytest for local debugging.

## Contributions
TODO:
- [ ] Improve testing
- [ ] Read configuration from pyproject.toml

