From d6dac6ca7b9b2271b60f7f88586cb2aee375f17c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 29 Aug 2024 16:57:25 -0700 Subject: [PATCH] Use %pip install not !pip install, refs #30 --- .../Anthropic 1P/00_Tutorial_How-To.ipynb | 2 +- .../Anthropic 1P/01_Basic_Prompt_Structure.ipynb | 2 +- .../Anthropic 1P/02_Being_Clear_and_Direct.ipynb | 2 +- .../Anthropic 1P/03_Assigning_Roles_Role_Prompting.ipynb | 2 +- .../Anthropic 1P/04_Separating_Data_and_Instructions.ipynb | 2 +- .../05_Formatting_Output_and_Speaking_for_Claude.ipynb | 2 +- .../Anthropic 1P/06_Precognition_Thinking_Step_by_Step.ipynb | 2 +- .../Anthropic 1P/07_Using_Examples_Few-Shot_Prompting.ipynb | 2 +- .../Anthropic 1P/08_Avoiding_Hallucinations.ipynb | 2 +- .../Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb | 2 +- .../Anthropic 1P/10.1_Appendix_Chaining Prompts.ipynb | 2 +- .../Anthropic 1P/10.2_Appendix_Tool Use.ipynb | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/00_Tutorial_How-To.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/00_Tutorial_How-To.ipynb index befac63..c68544a 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/00_Tutorial_How-To.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/00_Tutorial_How-To.ipynb @@ -27,7 +27,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic" + "%pip install anthropic" ] }, { diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb index 625c8e6..f3846ad 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/01_Basic_Prompt_Structure.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/02_Being_Clear_and_Direct.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/02_Being_Clear_and_Direct.ipynb index bcdb0ba..1d71671 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/02_Being_Clear_and_Direct.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/02_Being_Clear_and_Direct.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/03_Assigning_Roles_Role_Prompting.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/03_Assigning_Roles_Role_Prompting.ipynb index 3b67ae3..2403d1a 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/03_Assigning_Roles_Role_Prompting.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/03_Assigning_Roles_Role_Prompting.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/04_Separating_Data_and_Instructions.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/04_Separating_Data_and_Instructions.ipynb index 7d81fd1..76a9937 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/04_Separating_Data_and_Instructions.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/04_Separating_Data_and_Instructions.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/05_Formatting_Output_and_Speaking_for_Claude.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/05_Formatting_Output_and_Speaking_for_Claude.ipynb index 691aa13..499bb2f 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/05_Formatting_Output_and_Speaking_for_Claude.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/05_Formatting_Output_and_Speaking_for_Claude.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/06_Precognition_Thinking_Step_by_Step.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/06_Precognition_Thinking_Step_by_Step.ipynb index 14af672..f5538aa 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/06_Precognition_Thinking_Step_by_Step.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/06_Precognition_Thinking_Step_by_Step.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/07_Using_Examples_Few-Shot_Prompting.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/07_Using_Examples_Few-Shot_Prompting.ipynb index a2b1bf5..e395fdb 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/07_Using_Examples_Few-Shot_Prompting.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/07_Using_Examples_Few-Shot_Prompting.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/08_Avoiding_Hallucinations.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/08_Avoiding_Hallucinations.ipynb index 7e3df42..8d95b8f 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/08_Avoiding_Hallucinations.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/08_Avoiding_Hallucinations.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb index 2b20ae2..f34218b 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/09_Complex_Prompts_from_Scratch.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/10.1_Appendix_Chaining Prompts.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/10.1_Appendix_Chaining Prompts.ipynb index 050a62d..dc8c5b2 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/10.1_Appendix_Chaining Prompts.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/10.1_Appendix_Chaining Prompts.ipynb @@ -20,7 +20,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n", diff --git a/prompt_engineering_interactive_tutorial/Anthropic 1P/10.2_Appendix_Tool Use.ipynb b/prompt_engineering_interactive_tutorial/Anthropic 1P/10.2_Appendix_Tool Use.ipynb index fb632a0..350f838 100644 --- a/prompt_engineering_interactive_tutorial/Anthropic 1P/10.2_Appendix_Tool Use.ipynb +++ b/prompt_engineering_interactive_tutorial/Anthropic 1P/10.2_Appendix_Tool Use.ipynb @@ -21,7 +21,7 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install anthropic\n", + "%pip install anthropic\n", "\n", "# Import python's built-in regular expression library\n", "import re\n",