Skip to content

Commit

Permalink
Fix typo in default username fo jupyter (#239)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Tuloup <[email protected]>
  • Loading branch information
evsasha and jtpio authored Feb 4, 2025
1 parent 9c24710 commit 6d739a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ c = get_config()
c.ResourceUseDisplay.track_disk_usage = True
```

The values are from the partition containing the folder in the trait `disk_path` (which defaults to `/home/joyvan`). If this path does not exist, disk usage information is omitted from the display.
The values are from the partition containing the folder in the trait `disk_path` (which defaults to `/home/jovyan`). If this path does not exist, disk usage information is omitted from the display.

Mirroring CPU and Memory, the trait `disk_warning_threshold` signifies when to flag a usage warning, and like the others, it defaults to `0.1` (10% remaining)

Expand Down
4 changes: 2 additions & 2 deletions jupyter_resource_usage/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ResourceUseDisplay(Configurable):
# Needs to be defined early, so the metrics can use it.
disk_path = Union(
trait_types=[Unicode(), Callable()],
default_value="/home/joyvan",
default_value="/home/jovyan",
help="""
A path in the partition to be reported on.
""",
Expand Down Expand Up @@ -155,7 +155,7 @@ def _cpu_limit_default(self):

@default("disk_path")
def _disk_path_default(self):
return str(os.environ.get("HOME", "/home/joyvan"))
return str(os.environ.get("HOME", "/home/jovyan"))

disk_warning_threshold = Float(
default_value=0.1,
Expand Down

0 comments on commit 6d739a7

Please sign in to comment.