Skip to content

Commit

Permalink
Merge pull request #4 from mahendrapaipuri/upgrade_to_jl4
Browse files Browse the repository at this point in the history
Upgrade to JupyterLab 4
  • Loading branch information
mahendrapaipuri authored Oct 12, 2023
2 parents a50b0ef + 9e75859 commit 62b1ee6
Show file tree
Hide file tree
Showing 10 changed files with 5,483 additions and 4,948 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.1.1
rev: v3.0.0
hooks:
- id: prettier
additional_dependencies:
- prettier@2.1.1
- prettier@2.8.4
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.32.0
rev: v8.43.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
additional_dependencies:
- '@typescript-eslint/eslint-plugin@4.8.1'
- '@typescript-eslint/parser@4.8.1'
- eslint@^7.14.0
- eslint-config-prettier@6.15.0
- eslint-plugin-prettier@3.1.4
- typescript@4.1.3
- '@typescript-eslint/eslint-plugin@5.55.0'
- '@typescript-eslint/parser@5.55.0'
- eslint@^8.36.0
- eslint-config-prettier@8.7.0
- eslint-plugin-prettier@4.2.1
- typescript@5.0.4
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
Expand Down
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enableImmutableInstalls: false
nodeLinker: node-modules
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# jupyter-power-usage

![Github Actions Status](https://github.com/mahendrapaipuri/jupyter-power-usage/workflows/Tests/badge.svg)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/mahendrapaipuri/jupyter-power-usage/main)
[![PyPI](https://img.shields.io/pypi/v/jupyter-power-usage)](https://pypi.python.org/pypi/jupyter-power-usage)
[![PyPI](https://img.shields.io/pypi/l/jupyter-power-usage)](https://pypi.python.org/pypi/jupyter-power-usage)
[![GitHub](https://img.shields.io/badge/issue_tracking-github-blue?logo=github)](https://github.com/jupyter-server/jupyter-resource-usage/issues)

**Try the extension on**
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/mahendrapaipuri/jupyter-power-usage/main)

![Screencast for power usage](https://raw.githubusercontent.com/mahendrapaipuri/jupyter-power-usage/main/doc/power-usage.gif)

The objective of this extension is to display power usage of the CPU and/or GPU on which jupyter server is running. Power usage is estimated using [Running Average Power Limit (RAPL)](https://web.eece.maine.edu/~vweaver/projects/rapl/) metrics that are available on Intel processors manufactured after 2012 (since broadwell). It is available on latest AMD processors as well. For the case of GPUs, currently only nVIDIA GPUs are supported and power usage is gathered from `nvidia-smi` tool.
Expand Down
6 changes: 3 additions & 3 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: jupyter-resource-usage
name: jupyter-power-usage
channels:
- conda-forge
dependencies:
- python=3
- jupyterlab=3
- python=3.8
- jupyterlab=4
- nodejs=18
Loading

0 comments on commit 62b1ee6

Please sign in to comment.