Skip to content

Commit

Permalink
Added details about jupyter environment to environment() function
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Jun 23, 2024
1 parent 9de5764 commit cf628c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pde/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,18 @@ def environment() -> dict[str, Any]:
"plotting context": get_plotting_context().__class__.__name__,
}

# add information about jupyter environment
result["jupyter environment"] = get_package_versions(
[
"ipykernel",
"ipywidgets",
"jupyter_client",
"jupyter_core",
"jupyter_server",
"notebook",
]
)

# add details about optional packages
packages = set(packages_from_requirements(RESOURCE_PATH / "requirements_full.txt"))
packages |= set(packages_from_requirements(RESOURCE_PATH / "requirements_mpi.txt"))
Expand Down

0 comments on commit cf628c5

Please sign in to comment.