Skip to content

Commit e7b16e0

Browse files
authored
Bring back mount points as lists (#203)
1 parent e49ae55 commit e7b16e0

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

docs/files.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ You can mount extra directories into the kernel using the mounts option:
4343
```bash
4444
jupyter lite build \
4545
--XeusAddon.mounts="mypackage:/lib/python3.11/site-packages/mypackage"
46+
--XeusAddon.mounts="hispackage:/lib/python3.11/site-packages/hispackage"
4647
```

jupyterlite_xeus/add_on.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ def get_kernel_binaries(path):
6969

7070
return None
7171

72-
class MountPoints(List):
73-
def from_string(self, s):
74-
return s.split(",")
75-
7672

7773
class ListLike(List):
7874
def from_string(self, s):
@@ -108,10 +104,10 @@ class XeusAddon(FederatedExtensionAddon):
108104
description="Whether or not to mount the jupyterlite content into the kernel. This would make the jupyterlite content available under the '/files' directory, and the kernels will automatically be started from there.",
109105
)
110106

111-
mounts = MountPoints(
107+
mounts = ListLike(
112108
[],
113109
config=True,
114-
description="A comma-separated list of mount points, in the form <host_path>:<mount_path> to mount in the wasm prefix",
110+
description="A list of mount points, in the form <host_path>:<mount_path> to mount in the wasm prefix",
115111
)
116112

117113
package_url_factory = Callable(

0 commit comments

Comments
 (0)