[build-system] requires = ["hatchling>=1.22", "jupyter_client>=6"] build-backend = "hatchling.build" [project] name = "ipykernel" dynamic = ["version"] authors = [{name = "IPython Development Team", email = "ipython-dev@scipy.org"}] license = "BSD-3-Clause" readme = "README.md" description = "IPython Kernel for Jupyter" keywords = ["Interactive", "Interpreter", "Shell", "Web"] classifiers = [ "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Intended Audience :: Science/Research", "Programming Language :: Python", "Programming Language :: Python :: 3", ] requires-python = ">=3.10" dependencies = [ "debugpy>=1.6.5", "ipython>=7.23.1", "comm>=0.1.1", "traitlets>=5.4.0", "jupyter_client>=8.8.0", "jupyter_core>=5.1,!=6.0.*", # For tk event loop support only. "nest_asyncio>=1.4", "tornado>=6.4.1", "matplotlib-inline>=0.1", 'appnope>=0.1.2;platform_system=="Darwin"', "pyzmq>=25", "psutil>=5.7", "packaging>=22", ] [project.urls] Homepage = "https://ipython.org" Documentation = "https://ipykernel.readthedocs.io" Source = "https://github.com/ipython/ipykernel" Tracker = "https://github.com/ipython/ipykernel/issues" [project.optional-dependencies] docs = [ # Sphinx pinned until `sphinx-autodoc-typehints` issue is resolved: # https://github.com/tox-dev/sphinx-autodoc-typehints/issues/523 "sphinx<8.2.0", "myst_parser", "pydata_sphinx_theme", "sphinxcontrib_github_alt", "sphinxcontrib-spelling", "sphinx-autodoc-typehints", "intersphinx_registry", "trio" ] test = [ "pytest>=7.0,<10", "pytest-cov", # 'pytest-xvfb; platform_system == "Linux"', "flaky", "ipyparallel", "pre-commit", "pytest-asyncio>=0.23.5", "pytest-timeout" ] cov = [ "coverage[toml]", "pytest-cov", "matplotlib", "trio", ] pyqt5 = ["pyqt5"] pyside6 = ["pyside6"] [tool.hatch.version] path = "ipykernel/_version.py" # Used to call hatch_build.py [tool.hatch.build.hooks.custom] [tool.hatch.build.targets.wheel.shared-data] "data_kernelspec" = "share/jupyter/kernels/python3" [tool.hatch.build.force-include] "./ipykernel_launcher.py" = "ipykernel_launcher.py" [tool.hatch.envs.docs] features = ["docs"] [tool.hatch.envs.docs.scripts] build = "make -C docs html SPHINXOPTS='-W'" api = "sphinx-apidoc -o docs/api -f -E ipykernel tests ipykernel/datapub.py ipykernel/pickleutil.py ipykernel/serialize.py ipykernel/gui ipykernel/pylab ipykernel/utils.py" [tool.hatch.envs.test] features = ["test"] [tool.hatch.envs.test.scripts] list = "python -m pip freeze" test = "python -m pytest -vv {args}" nowarn = "test -W default {args}" [tool.hatch.envs.cov] features = ["test", "cov"] [tool.hatch.envs.cov.scripts] test = "python -m pytest -vv --cov ipykernel --cov-branch --cov-report term-missing:skip-covered {args}" nowarn = "test -W default {args}" [tool.hatch.envs.cov.overrides] env.QT.features = [ { value = "pyqt5", if = ["qt5"] }, { value = "pyside6", if = ["qt6"] }, ] [tool.hatch.envs.typing] dependencies = ["pre-commit"] detached = true [tool.hatch.envs.typing.scripts] test = "pre-commit run --all-files --hook-stage manual mypy" [tool.hatch.envs.lint] dependencies = ["pre-commit"] detached = true [tool.hatch.envs.lint.scripts] build = [ "pre-commit run --all-files ruff-check", "pre-commit run --all-files ruff-format" ] [tool.mypy] files = "ipykernel" strict = true disable_error_code = ["no-untyped-def", "no-untyped-call", "import-not-found"] enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] follow_imports = "normal" pretty = true warn_unreachable = true [tool.pytest.ini_options] minversion = "6.0" xfail_strict = true log_cli_level = "info" addopts = [ "-raXs", "--durations=10", "--color=yes", "--doctest-modules", "--showlocals", "--strict-markers", "--strict-config", "--ignore=ipykernel/pylab/backend_inline.py", "--ignore=ipykernel/pylab/config.py", "--ignore=ipykernel/gui/gtk3embed.py", "--ignore=ipykernel/gui/gtkembed.py", "--ignore=ipykernel/datapub.py", "--ignore=ipykernel/log.py", "--ignore=ipykernel/pickleutil.py", "--ignore=ipykernel/serialize.py", "--ignore=ipykernel/_eventloop_macos.py" ] testpaths = [ "tests", ] asyncio_mode = "auto" #timeout = 300 timeout = 30 # Restore this setting to debug failures #timeout_method = "thread" filterwarnings= [ # Fail on warnings "error", # Ignore our own warnings "ignore:The `stream` parameter of `getpass.getpass` will have no effect:UserWarning", # IPython warnings "ignore: `Completer.complete` is pending deprecation since IPython 6.0 and will be replaced by `Completer.completions`:PendingDeprecationWarning", "ignore: backends is deprecated since IPython 8.24, backends are managed in matplotlib and can be externally registered.:DeprecationWarning", "ignore: backend2gui is deprecated since IPython 8.24, backends are managed in matplotlib and can be externally registered.:DeprecationWarning", # Ignore jupyter_client warnings "module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning", # ignore unclosed sqlite in traits "ignore:unclosed database in