Skip to content

Commit

Permalink
api: fix bug in notebook build
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Aug 11, 2021
1 parent e561248 commit efc5fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpcontribs-api/mpcontribs/api/notebooks/views.py
Expand Up @@ -110,7 +110,7 @@ def build():

def restart_kernels():
"""use to avoid run-away memory"""
kernel_ids = [k for k, v in current_app.kernels.items() if v["cid"] is None]
kernel_ids = [k for k, v in current_app.kernels.items() if v is None]

for kernel_id in kernel_ids:
kernel_url = get_kernel_endpoint(kernel_id) + "/restart"
Expand Down

0 comments on commit efc5fd6

Please sign in to comment.