Add the custom CSS handler is `self.custom_css` is set

pull/7233/head
Jeremy Tuloup 2 years ago
parent 2a8e5797a3
commit ca2ce8d016

@ -354,7 +354,8 @@ class JupyterNotebookApp(NotebookConfigShimMixin, LabServerApp): # type:ignore[
self.handlers.append(("/edit(.*)", FileHandler))
self.handlers.append(("/consoles/(.*)", ConsoleHandler))
self.handlers.append(("/terminals/(.*)", TerminalHandler))
self.handlers.append(("/custom/custom.css", CustomCssHandler))
if self.custom_css:
self.handlers.append(("/custom/custom.css", CustomCssHandler))
super().initialize_handlers()
def initialize(self, argv: list[str] | None = None) -> None: # noqa: ARG002

Loading…
Cancel
Save