DEV Community

Cover image for Using Octave kernel in a Jupyter Notebook
Kherin Bundhoo
Kherin Bundhoo

Posted on

Using Octave kernel in a Jupyter Notebook

This is a lightning-quick 💫 tutorial on how to link the Octave kernel with a Jupyter Notebook.

Requirements:

  • Python >= 3.5
  • Anaconda 4.10.1

Installation

In your command line, navigate to your project folder and activate your Anaconda environment

Alt Text

Install the octave_kernel package using conda install -c conda-forge octave_kernel

Alt Text

Configuration

Run Jupyter Notebook inside your workspace and open your browser. Within the file explorer page, on the right-hand-side, select Octave from the New dropdown.

Alt Text

This will create a new notebook which is linked to the Octave kernel and which enables you to execute Octave syntax within the code cells.

Setting Graphics Toolkit

To be able to display graph plots within the notebook, you will need to indicate which graphics toolkit you want the script to use before rendering the plots. (In this example, we are using the gnuplot graphics toolkit)

Add the following line to top of your code:

graphics_toolkit ("gnuplot");

Alt Text

References

AI Agent image

How to Build an AI Agent with Semantic Kernel (and More!)

Join Developer Advocate Luce Carter for a hands-on tutorial on building an AI-powered dinner recommendation agent. Discover how to integrate Microsoft Semantic Kernel, MongoDB Atlas, C#, and OpenAI for ingredient checks and smart restaurant suggestions.

Watch the video 📺

Top comments (0)

Quickstart image

Django MongoDB Backend Quickstart! A Step-by-Step Tutorial

Get up and running with the new Django MongoDB Backend Python library! This tutorial covers creating a Django application, connecting it to MongoDB Atlas, performing CRUD operations, and configuring the Django admin for MongoDB.

Watch full video →

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, cherished by the supportive DEV Community. Coders of every background are encouraged to bring their perspectives and bolster our collective wisdom.

A sincere “thank you” often brightens someone’s day—share yours in the comments below!

On DEV, the act of sharing knowledge eases our journey and forges stronger community ties. Found value in this? A quick thank-you to the author can make a world of difference.

Okay