Skip to content

Commit 6153a8c

Browse files
authored
Fix docs and examples (#1183)
1 parent bc735a1 commit 6153a8c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

examples/simple/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module.exports = {
33
output: {
44
path: require("path").join(__dirname, "simple_ext1", "static"),
55
filename: "bundle.js",
6+
hashFunction: 'sha256'
67
},
78
mode: "development",
89
};

jupyter_server/services/sessions/sessionmanager.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@ async def create_session(
272272
) -> Dict[str, Any]:
273273
"""Creates a session and returns its model
274274
275+
Parameters
276+
----------
275277
name: ModelName(str)
276278
Usually the model name, like the filename associated with current
277279
kernel.
278-
279-
280280
"""
281281
session_id = self.new_session_id()
282282
record = KernelSessionRecord(session_id=session_id)
@@ -300,13 +300,13 @@ def get_kernel_env(
300300
) -> Dict[str, str]:
301301
"""Return the environment variables that need to be set in the kernel
302302
303+
Parameters
304+
----------
303305
path : str
304306
the url path for the given session.
305307
name: ModelName(str), optional
306308
Here the name is likely to be the name of the associated file
307309
with the current kernel at startup time.
308-
309-
310310
"""
311311
if name is not None:
312312
cwd = self.kernel_manager.cwd_for_path(path)
@@ -324,6 +324,8 @@ async def start_kernel_for_session(
324324
) -> str:
325325
"""Start a new kernel for a given session.
326326
327+
Parameters
328+
----------
327329
session_id : str
328330
uuid for the session; this method must be given a session_id
329331
path : str
@@ -335,7 +337,6 @@ async def start_kernel_for_session(
335337
the type of the session
336338
kernel_name : str
337339
the name of the kernel specification to use. The default kernel name will be used if not provided.
338-
339340
"""
340341
# allow contents manager to specify kernels cwd
341342
kernel_path = await ensure_async(self.contents_manager.get_kernel_path(path=path))

0 commit comments

Comments
 (0)