Skip to content

Commit e603da1

Browse files
committed
Linter
1 parent 55d30d4 commit e603da1

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

voila/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async def get_generator(self, path=None):
143143
notebook_name=notebook_path,
144144
extra_kernel_env_variables={
145145
ENV_VARIABLE.VOILA_REQUEST_URL: self.request.full_url()
146-
}
146+
},
147147
)
148148

149149
RequestInfoSocketHandler.send_updates(

voila/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class ENV_VARIABLE(str, Enum):
3434
VOILA_KERNEL_ID = "VOILA_KERNEL_ID"
3535
VOILA_BASE_URL = "VOILA_BASE_URL"
3636
VOILA_SERVER_URL = "VOILA_SERVER_URL"
37+
VOILA_REQUEST_URL = "VOILA_REQUEST_URL"
3738
VOILA_APP_IP = "VOILA_APP_IP"
3839
VOILA_APP_PORT = "VOILA_APP_PORT"
3940
VOILA_WS_PROTOCOL = "VOILA_WS_PROTOCOL"

voila/voila_kernel_manager.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ def __init__(self, **kwargs):
128128
self.fill_if_needed(delay=0, notebook_name=str(nb))
129129

130130
async def get_rendered_notebook(
131-
self, notebook_name: str, extra_kernel_env_variables: dict = {}, **kwargs
131+
self,
132+
notebook_name: str,
133+
extra_kernel_env_variables: dict = {},
134+
**kwargs,
132135
) -> Tuple[asyncio.Task, TypeList[str]]:
133136
"""Get the notebook rendering task and the rendered cell.
134137
By setting the `stop_generator` to True, the running task
@@ -167,7 +170,12 @@ async def get_rendered_notebook(
167170
self.log.info(
168171
"Using pre-heated kernel: %s for %s", kernel_id, notebook_name
169172
)
170-
self.fill_if_needed(delay=None, notebook_name=notebook_name, extra_kernel_env_variables=extra_kernel_env_variables, **kwargs)
173+
self.fill_if_needed(
174+
delay=None,
175+
notebook_name=notebook_name,
176+
extra_kernel_env_variables=extra_kernel_env_variables,
177+
**kwargs,
178+
)
171179

172180
return render_task, renderer.rendered_cache, kernel_id
173181

0 commit comments

Comments
 (0)