Integration of Jupyter Notebook in Knowledge Studio
There is a node in Knowledge studio dedicated to write and execute python codes, enabling users to integrate them into their data analytics workflows. It’s located in the Action palette and is called Python Code.
Jupyter notebook is a web based integrated development environment that is extensively used in data science projects and supports over 40 programming languages such as Python, R, Julia, and Scala. This blog is explaining the steps for configuring knowledge studio to integrate the python code node with Jupyter notebook to load the code in the notebook session. Here are the steps:
- Install Jupyter notebook if you haven’t yet. Please refer to https://jupyter.org/install
- Find the location of Jupyter executable (jupyter.exe) which is required to launch this application. Example of path to jupyter.exe: "C:\Users\rawasthi\Miniforge\Scripts\miniforge3\Scripts\jupyter.exe"
- Open a text editor and create a file called KDSProvider.conf and specify the path to the Jupyter executable (Step 2) using the following line of code: jupyter_path <path>.
- Save the KDSProvider.conf in the directory containing the application binaries. The default locations are:
- Windows workstation: C:\Program Files\Altair Data Analytics\KS Workstation 2022.2.0\bin
- Windows Server: C:\Program Files\Altair Data Analytics\KS Server 2022.2.0\bin
- Linux: /opt/Altair-Data-Analytics/KS-Server-2022.2/lib
- Once the configuration is complete you can restart Knowledge Studio and launch Jupyter Notebook from python node.
- A pop window prompts user to select the port number and name of Jupyter Notebook.
- Jupyter Notebook is launched in your default web browser, and the code from the Python Code node is loaded in the new notebook session.
- For more information, please refer to the “Help” in Knowledge Studio and search for python code node.
Comments
-
You can write Python code in Knowledge Studio by dragging the Python widget as mentioned in the snippet below. You can further connect your code to the existing workflow.
1