From the course: Enhancing Your Notebook Workflow with Jupyter AI

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Using AI magic commands in Jupyter AI

Using AI magic commands in Jupyter AI

- [Instructor] In the previous video, we discussed AI magic commands in Jupyter and how you can enhance your workflow with them. Now let's see this in action. First, load the AI magic command using load ext jupyter_ai_magic. To use the cell magic command, you need to specify the model. This can be different from the one used in Jupyternaut. Remember, the API token must be set in the command prompt for all this to work. So the AI magic cell command OpenAI gpt-40-mini. And our question is, "What is the difference between a for loop and recursion?" So it returns a response that says that it cannot determine this particular model provider from this AI. Let's follow the instruction and use the AI cell command to see the list of available models. So these are the list of available models that we can use with the magic command. Let's scroll to, okay, so for us to use a 40-mini, let's copy this because we are going to need that. So inside the cell below, let's paste this and let's copy and…

Contents