https://jupyter-client.readthedocs.io/en/stable/messaging.html#execution-results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # /// script | |
| # requires-python = ">=3.13" | |
| # dependencies = [ "scanpy>=1.12rc0", "pyarrow", "memory-profiler" ] | |
| # /// | |
| """Profile arrow memory.""" | |
| from __future__ import annotations | |
| import gc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # usage: `hatch test -a` | |
| [envs.hatch-test] | |
| detached = true | |
| dependencies = ["numba", "numpy<2"] | |
| scripts.run = "python -m {args}" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Note
Title
Body
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [metadata] | |
| allow-direct-references = true | |
| [envs.default] | |
| installer = "uv" | |
| #dependencies = ["ipykernel", "snakeviz", "py-spy", "ipywidgets", "ipynbname", "ipympl"] | |
| features = ["dev"] | |
| [envs.hatch-test] | |
| default-args = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import importlib | |
| def find_subpackage(dist: str, ns_name: str): | |
| """Finds subpackages of a namespace package | |
| Within a distribution `dist`, given a known toplevel namespace package `ns_name`, | |
| this finds all 2 level deep package: | |
| >>> list(find_subpackage("jaraco-classes", "jaraco")) | |
| ["jaraco.classes"] |
NewerOlder