Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer for new org #268

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ ci:
autoupdate_schedule: "quarterly"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.8.0
rev: 23.3.0
hooks:
- id: black

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.5.2
rev: 1.7.0
hooks:
- id: nbqa-black
- id: nbqa-isort
Expand All @@ -30,25 +30,12 @@ repos:
- id: nbstripout

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.0
rev: v3.0.0-alpha.6
hooks:
- id: prettier

- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.256
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.7.0]

- repo: https://github.com/PyCQA/autoflake
rev: v1.6.1
hooks:
- id: autoflake
args:
[
"--exclude=mpl_interactions/ipyplot.py",
"--in-place",
"--remove-all-unused-imports",
"--ignore-init-module-imports",
"--remove-unused-variables",
]
- id: ruff
args: [--fix]
6 changes: 4 additions & 2 deletions readthedocs.yml → .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.10"
python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- doc
- jupyter
# - requirements: docs/requirements.txt

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
},
"path_to_docs": "docs",
"repository_branch": "master",
"repository_url": "https://github.com/ianhi/mpl-interactions",
"repository_url": "https://github.com/mpl-extensions/mpl-interactions",
"use_download_button": True,
"use_edit_page_button": True,
"use_issues_button": True,
Expand Down Expand Up @@ -254,4 +254,4 @@ def linkcode_resolve(domain, info):

fn = os.path.relpath(fn, start=os.path.dirname(mpl_inter.__file__))

return f"https://github.com/ianhi/mpl-interactions/blob/master/mpl_interactions/{fn}{linespec}"
return f"https://github.com/mpl-extensions/mpl-interactions/blob/main/mpl_interactions/{fn}{linespec}"
8 changes: 4 additions & 4 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Contributing

Thanks for thinking of a way to help improve this library! Remember that contributions come in all shapes and sizes beyond writing bug fixes. Contributing to [documentation](#documentation), opening new [issues](https://github.com/ianhi/mpl-interactions/issues) for bugs, asking for clarification on things you find unclear, and requesting new features, are all super valuable contributions.
Thanks for thinking of a way to help improve this library! Remember that contributions come in all shapes and sizes beyond writing bug fixes. Contributing to [documentation](#documentation), opening new [issues](https://github.com/mpl-extensions/mpl-interactions/issues) for bugs, asking for clarification on things you find unclear, and requesting new features, are all super valuable contributions.

## Code Improvements

All development for this library happens on GitHub at [mpl_interactions](https://github.com/ianhi/mpl-interactions). We recommend you work with a [Conda](https://www.anaconda.com/products/individual) environment (or an alternative virtual environment like [`venv`](https://docs.python.org/3/library/venv.html)).
All development for this library happens on GitHub at [mpl_interactions](https://github.com/mpl-extensions/mpl-interactions). We recommend you work with a [Conda](https://www.anaconda.com/products/individual) environment (or an alternative virtual environment like [`venv`](https://docs.python.org/3/library/venv.html)).

```bash
git clone <your fork>
Expand Down Expand Up @@ -40,7 +40,7 @@ If you are working in a Jupyter Notebook, then in order to see your code changes

Using Git/GitHub can confusing (<https://xkcd.com/1597>), so if you're new to Git, you may find it helpful to use a program like [GitHub Desktop](https://desktop.github.com) and to follow a [guide](https://github.com/firstcontributions/first-contributions#first-contributions).

Also feel free to ask for help/advice on the relevant GitHub [issue](https://github.com/ianhi/mpl-interactions/issues).
Also feel free to ask for help/advice on the relevant GitHub [issue](https://github.com/extensions/mpl-interactions/issues).

## Documentation

Expand Down Expand Up @@ -72,4 +72,4 @@ To accomplish, these GIFs are best stored in `docs/_static/images`. Then, below

## Thank you to our current team!

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributors members can be found on `mpl_interactions`' [README](https://github.com/ianhi/mpl-interactions#contributors-) page.
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributors members can be found on `mpl_interactions`' [README](https://github.com/extensions/mpl-interactions#contributors-) page.
2 changes: 2 additions & 0 deletions docs/examples/custom-callbacks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
"# attach a custom callback\n",
"\n",
"# if running from a script you can just delete the widgets.Output and associated code\n",
"\n",
"\n",
"def my_callback(tau, beta):\n",
" if tau < 7.5:\n",
" ax.tick_params(axis=\"x\", colors=\"red\")\n",
Expand Down
2 changes: 0 additions & 2 deletions docs/examples/devlop/devlop-controller.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@
" )\n",
"\n",
" def update(params, indices):\n",
"\n",
" # update plot\n",
" for i, f in enumerate(funcs):\n",
" if x is not None and not indexed_x:\n",
Expand Down Expand Up @@ -379,7 +378,6 @@
"\n",
" lines = []\n",
" for i, f in enumerate(funcs):\n",
"\n",
" if x is not None and not indexed_x:\n",
" lines.append(ax.plot(x, f(x, **params), **plot_kwargs[i])[0])\n",
" elif indexed_x:\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/embed_heatmap_slicer_tk.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
based on https://matplotlib.org/3.1.0/gallery/user_interfaces/embedding_in_tk_sgskip.html
special thanks to @tacaswell for helping on the matplotlib discourse:
https://discourse.matplotlib.org/t/mpl-iteractions-with-gui-outside-of-jupyter-notebooks/21523/6
https://discourse.matplotlib.org/t/mpl-iteractions-with-gui-outside-of-jupyter-notebooks/21523/6.
"""

import tkinter
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/gallery/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Gallery

The gallery is currently woefully incomplete as it is serving as a test case for developing <https://github.com/ianhi/mpl-playback>, which is a very new project. You should follow the tutorials available in the table of contents on the left of the screen in order to learn how to use this package.
The gallery is currently woefully incomplete as it is serving as a test case for developing <https://github.com/mpl-extensions/mpl-playback>, which is a very new project. You should follow the tutorials available in the table of contents on the left of the screen in order to learn how to use this package.
2 changes: 1 addition & 1 deletion docs/examples/gallery/heatmap_slicer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
=============
Heamap Slicer
=============
=============.

"""
import matplotlib.pyplot as plt
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/gallery/mpl-sliders-same-figure.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
=====================================================
Matplotlib Sliders without a separate Controls Figure
=====================================================
=====================================================.

Demonstration of how to provide a matplotlib slider to prevent
the creation of a separate controls figure.
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/hyperslicer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
"source": [
"### Other ways of specifying axes\n",
"\n",
"All of the below are valid calls to hyperslicer, which generally supports omitting any of the labels or names while falling back to integer valued sliders. If you come across bugs relating to omitting values or passing {obj}`None`, please feel free to [open an issue](https://github.com/ianhi/mpl-interactions/issues)."
"All of the below are valid calls to hyperslicer, which generally supports omitting any of the labels or names while falling back to integer valued sliders. If you come across bugs relating to omitting values or passing {obj}`None`, please feel free to [open an issue](https://github.com/mpl-extensions/mpl-interactions/issues)."
]
},
{
Expand Down Expand Up @@ -341,7 +341,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -355,7 +355,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.11.0"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/rossler-attractor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"\n",
"The Rossler attractor is a 3 dimensional system, but as 3D plots are not yet supported by `mpl_interactions` we will only visualize the `x` and `y` components.\n",
"\n",
"**Note:** Matplotlib supports 3D plots, but `mpl_interactions` does not yet support them. That makes this a great place to contribute to `mpl_interactions` if you're interested in doing so. If you want to have a crack at it feel free to comment on [ianhi/mpl-interactions#89](https://github.com/ianhi/mpl-interactions/issues/89) and [`@ianhi`](https://github.com/ianhi) will be happy to help you through the process.\n",
"**Note:** Matplotlib supports 3D plots, but `mpl_interactions` does not yet support them. That makes this a great place to contribute to `mpl_interactions` if you're interested in doing so. If you want to have a crack at it feel free to comment on [mpl-extensions/mpl-interactions#89](https://github.com/mpl-extensions/mpl-interactions/issues/89) and [`@ianhi`](https://github.com/ianhi) will be happy to help you through the process.\n",
"\n",
"\n",
"### Caching\n",
Expand Down Expand Up @@ -174,7 +174,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -188,7 +188,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.0"
"version": "3.11.0"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/scatter-selector.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"\n",
"For this example we have pre-cleaned data that we will just load. If you are curious on how the data was originally processed you see the full code at the bottom of this notebook.\n",
"\n",
"The datafiles that we load for this example are available for download at <https://github.com/ianhi/mpl-interactions/tree/master/docs/examples/data>"
"The datafiles that we load for this example are available for download at <https://github.com/mpl-extensions/mpl-interactions/tree/master/docs/examples/data>"
]
},
{
Expand Down Expand Up @@ -226,7 +226,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -240,7 +240,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.8"
"version": "3.11.0"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/text-annotations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"\n",
"\n",
"```{note}\n",
"Support for modifying text is not complete as none of the function implemented support updating `fontdict` or other text properties like size and color. However, the core functionality is there to place text, change it's position, or change what it reads. see https://github.com/ianhi/mpl-interactions/issues/247 for updates.\n",
"Support for modifying text is not complete as none of the function implemented support updating `fontdict` or other text properties like size and color. However, the core functionality is there to place text, change it's position, or change what it reads. see https://github.com/mpl-extensions/mpl-interactions/issues/247 for updates.\n",
"```"
]
},
Expand Down Expand Up @@ -164,7 +164,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.9"
"version": "3.11.0"
}
},
"nbformat": 4,
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@
"\n",
"iplt.title(\"the value of tau is: {tau:.2f}\", controls=controls[\"tau\"])\n",
"# you can still use plt commands if this is the active figure\n",
"\n",
"\n",
"def ylabel(tau):\n",
" return f\"tau/2 is {np.round(tau/2,3)}\"\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplot

## Development installation

First create your own fork of <https://github.com/ianhi/mpl-interactions>.
First create your own fork of <https://github.com/mpl-extensions/mpl-interactions>.

```bash
git clone <your fork>
Expand Down
1 change: 0 additions & 1 deletion mpl_interactions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from ._version import __version__
except ImportError:
__version__ = "unkown"
from .deprecations import mpl_interactions_DeprecationWarning
from .generic import *
from .helpers import *
from .pyplot import *
Expand Down
Loading