From 7db7abd3fbe0ae0cbacc9769533fa2e83e8524fe Mon Sep 17 00:00:00 2001 From: Ryan Chase <167824500+ryanchase-cohere@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:34:31 -0800 Subject: [PATCH] added `(*args, **kwargs)` as parameters to `set_css ()` so that it can be called with any arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit added (*args, **kwargs) as parameters to set_css () so that it can be called with any arguments. In Jupyter’s event system, callbacks for `pre_run_cell` often receive arguments related to the cell execution context. Therefore, the `set_css` function should be set up to handle these arguments. --- notebooks/llmu/RAG_with_Chat_Embed_and_Rerank.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks/llmu/RAG_with_Chat_Embed_and_Rerank.ipynb b/notebooks/llmu/RAG_with_Chat_Embed_and_Rerank.ipynb index ec7b98a..8aeb385 100644 --- a/notebooks/llmu/RAG_with_Chat_Embed_and_Rerank.ipynb +++ b/notebooks/llmu/RAG_with_Chat_Embed_and_Rerank.ipynb @@ -119,7 +119,7 @@ "\n", "from IPython.display import HTML, display\n", "\n", - "def set_css():\n", + "def set_css(*args, **kwargs):\n", " display(HTML('''\n", "