Metadata-Version: 2.1
Name: jupyter-reorder-python-imports
Version: 0.0.1
Summary: Reorder python imports for Jupyter notebooks
Home-page: 
Author: Daniel Stoops
Author-email: danielstoosp25@gmail.com
Maintainer: Daniel Stoops
Maintainer-email: danielstoosp25@gmail.com
Platform: win32
Requires-Python: <3.12,>=3.6
Description-Content-Type: text/markdown
Requires-Dist: reorder-python-imports (>=3.9.0)
Provides-Extra: testing
Requires-Dist: flake8 (>=6.0.0) ; extra == 'testing'
Requires-Dist: jupyterlab (>=3.6.3) ; extra == 'testing'
Requires-Dist: mypy (>=1.2.0) ; extra == 'testing'
Requires-Dist: playwright (>=1.33.0) ; extra == 'testing'
Requires-Dist: pytest (>=7.3.1) ; extra == 'testing'
Requires-Dist: tox (>=4.5.1) ; extra == 'testing'
Requires-Dist: black (>=23.3.0) ; extra == 'testing'

# jupyter-reorder-python-imports

[reorder-python-imports](https://github.com/asottile/reorder-python-imports) is a great library. Now availble 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 `min_python_version`, which is a tuple specifying the minimum python version to be used for reordering imports. For example, `min_python_version=(3,9)` specifies that the minimum python version is 3.9, and `min_python_version=(3,)` specifies python 3.
```
import jupyter-reorder-python-imports

jupyter-reorder-python-imports.load(min_python_version=(3,9))
```


## TODO
Contribution ideas:
- [ ] Improve testing

## Acknowledgements
Of course, thanks to the [reorder-python-imports](https://github.com/asottile/reorder-python-imports) and [jupyter](https://jupyter.org/) teams for their continued work that we all use!

Further, thanks to [jupyter-black](https://github.com/n8henrie/jupyter-black) whose code greatly helped this project.
