Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Mar 21, 2023
1 parent 55d30d4 commit 9cff19c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion voila/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def get_generator(self, path=None):
notebook_name=notebook_path,
extra_kernel_env_variables={
ENV_VARIABLE.VOILA_REQUEST_URL: self.request.full_url()
}
},
)

RequestInfoSocketHandler.send_updates(
Expand Down
12 changes: 10 additions & 2 deletions voila/voila_kernel_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ def __init__(self, **kwargs):
self.fill_if_needed(delay=0, notebook_name=str(nb))

async def get_rendered_notebook(
self, notebook_name: str, extra_kernel_env_variables: dict = {}, **kwargs
self,
notebook_name: str,
extra_kernel_env_variables: dict = {},
**kwargs,
) -> Tuple[asyncio.Task, TypeList[str]]:
"""Get the notebook rendering task and the rendered cell.
By setting the `stop_generator` to True, the running task
Expand Down Expand Up @@ -167,7 +170,12 @@ async def get_rendered_notebook(
self.log.info(
"Using pre-heated kernel: %s for %s", kernel_id, notebook_name
)
self.fill_if_needed(delay=None, notebook_name=notebook_name, extra_kernel_env_variables=extra_kernel_env_variables, **kwargs)
self.fill_if_needed(
delay=None,
notebook_name=notebook_name,
extra_kernel_env_variables=extra_kernel_env_variables,
**kwargs,
)

return render_task, renderer.rendered_cache, kernel_id

Expand Down

0 comments on commit 9cff19c

Please sign in to comment.