From 1dd457c320669ea91988c9ceffe22ef7a2e2661d Mon Sep 17 00:00:00 2001 From: Piotr Migdal Date: Mon, 4 May 2026 13:12:36 +0200 Subject: [PATCH 1/2] chore: gitignore .DS_Store and other OS/editor cruft Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 4740b51..76d8cb3 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,10 @@ build/ tensorboard_logs/ examples/_test* .mypy_cache/ + +# OS / editor cruft +.DS_Store +Thumbs.db +*.swp +*.swo +.idea/ From c66aafe0f188374b930823d1ec9d9e330d6fb172 Mon Sep 17 00:00:00 2001 From: Piotr Migdal Date: Mon, 4 May 2026 13:50:02 +0200 Subject: [PATCH 2/2] fix(bokeh): support Bokeh in Google Colab (issue #109) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bokeh's push_notebook is permanently dead in Colab — Google blocks Jupyter Comms (bokeh#9302, colabtools#217). Detect Colab via 'google.colab' in sys.modules and take a separate render path: - Render the gridplot to a self-contained HTML doc via bokeh.embed.file_html with CDN resources. - Wrap it in ' + ) + payload = HTML(iframe_html) + if self._colab_handle is None: + self._colab_handle = display(payload, display_id=True) + else: + self._colab_handle.update(payload) + def _draw_metric_subplot(self, fig, group_logs: Dict[str, List[LogItem]]): """ Args: @@ -101,6 +148,8 @@ def _set_output_mode(self, mode: str): """Set notebook or script mode""" self.is_notebook = mode == 'notebook' if self.is_notebook: + # Bokeh auto-detects Colab in recent versions; passing + # notebook_type='colab' explicitly raises in Bokeh 3.x. self.io.output_notebook() else: self.io.output_file(self.output_file)