> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Extending nTop with Run Command and Python

export const YouTubeVideo = ({src, title, caption}) => {
  return <Frame caption={caption}>
      <iframe className="w-full aspect-video rounded-xl" src={`https://www.youtube.com/embed/${src}`} title={title} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>
    </Frame>;
};

<YouTubeVideo src="-YEs0RYcxW4" />

**Description**

In this training video, our Staff Solutions Engineer Imran Jameel explains what the Run Command block does, how it differs from nTop Automate, and when you might want to use it. The example workflow showcases an efficient approach of embedding the command function inside custom blocks to connect with Python and pass data in and out of nTop to visualize data. This approach can be applied to any Run Command use case. Follow along to understand how such a workflow can be set up to help you achieve specialized functionalities in nTop.

**Prerequisites:** [101: nTop Essentials](https://learn.ntop.com/courses/101-ntop-essentials/), [230: Intro to Automation](https://learn.ntop.com/courses/230-intro-to-automation/)

**What is Covered:**

* Introduction to the Run Command block in nTop and how it works
* Setting up and executing Python scripts using the Run Command block
* Exploring Python libraries accessible within nTop, and a data visualization example

The files provided below include the main custom blocks used in the example workflow. There are more custom blocks in the workflow inside of these. You can save them for your own use by right-clicking on the block and choose 'Export Custom Block'.

**Downloadable Files:**

[Run Command and Python.zip](https://files.learn.ntop.com/Courses/Recorded%20Trainings/Run%20Command%20and%20Python/Run%20Command%20and%20Python.zip)

*This file was last updated in nTop* 5.11.2
