From b1b6c73ae6cb514237de3da9b7996de28c851154 Mon Sep 17 00:00:00 2001 From: Kenneth Ocheltree Date: Thu, 7 Aug 2025 14:37:36 -0400 Subject: [PATCH] Fix notebook issues --- .../notebooks/compositionality_with_generative_slots.ipynb | 4 +--- docs/examples/notebooks/mcp_example.ipynb | 7 ++++--- docs/examples/notebooks/model_options_example.ipynb | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/examples/notebooks/compositionality_with_generative_slots.ipynb b/docs/examples/notebooks/compositionality_with_generative_slots.ipynb index 010aa828..ed73be81 100644 --- a/docs/examples/notebooks/compositionality_with_generative_slots.ipynb +++ b/docs/examples/notebooks/compositionality_with_generative_slots.ipynb @@ -115,10 +115,8 @@ ] }, { - "cell_type": "code", - "execution_count": null, + "cell_type": "markdown", "metadata": {}, - "outputs": [], "source": [ "## Specify Contract Functions\n", "To help us compose these libraries, we introduce a set of contracts that gate function composition and then use those contracts to short-circuit non-sensical compositions of library components:" diff --git a/docs/examples/notebooks/mcp_example.ipynb b/docs/examples/notebooks/mcp_example.ipynb index 8fb792da..dee307e1 100644 --- a/docs/examples/notebooks/mcp_example.ipynb +++ b/docs/examples/notebooks/mcp_example.ipynb @@ -17,9 +17,9 @@ "id": "ZIu6B1Ht927Z" }, "source": [ - "## Install Ollama\n", + "## Install Ollama and MCP\n", "\n", - "Before we get started with Mellea, we download and install ollama." + "Before we get started with Mellea, we install ollama and mcp" ] }, { @@ -31,7 +31,8 @@ "outputs": [], "source": [ "!curl -fsSL https://ollama.com/install.sh | sh\n", - "!nohup ollama serve &" + "!nohup ollama serve &\n", + "!uv pip install mcp -q" ] }, { diff --git a/docs/examples/notebooks/model_options_example.ipynb b/docs/examples/notebooks/model_options_example.ipynb index 21429ab0..8b40fe84 100644 --- a/docs/examples/notebooks/model_options_example.ipynb +++ b/docs/examples/notebooks/model_options_example.ipynb @@ -82,7 +82,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Spefify Options on Backend Initialization\n", + "## Specify Options on Backend Initialization\n", "You can add any key-value option pair supported by the backend to the model_options dictionary, and those options are passed along to the inference engine (even if a Mellea-specific ModelOption is defined for that option). This means you can safely copy over model option parameters from exiting codebases as-is:" ] },