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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay