Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 10, 2024
1 parent e5b133a commit dd09470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solara/components/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import typing

import ipyvuetify as v

try:
import pymdownx.emoji
import pymdownx.highlight
Expand Down Expand Up @@ -276,6 +277,7 @@ def wrapper(*args, **kwargs):
except Exception as e:
logger.exception("Error while highlighting code")
raise e

return wrapper


Expand Down
2 changes: 2 additions & 0 deletions solara/server/kernel_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def restart(self):
f()
self._on_close_callbacks.clear()
self.__post_init__()

lock: threading.RLock = dataclasses.field(default_factory=threading.RLock)

def display(self, *args):
Expand Down Expand Up @@ -230,6 +231,7 @@ async def create_task():
self._last_kernel_cull_task.cancel()

logger.info("Scheduling kernel cull for virtual kernel %s", self.id)

async def create_task():
task = asyncio.create_task(kernel_cull())
# create a reference to the task so we can cancel it later
Expand Down

0 comments on commit dd09470

Please sign in to comment.