> For the complete documentation index, see [llms.txt](https://docs-beta.flex83.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-beta.flex83.com/table-of-contents/transformations/notebooks.md).

# Notebooks

This module provides a playground to the users who want to write their own code for ETL pipeline or any other purpose. In a notebook there can be multiple code blocks in which user can write his code and that can run/execute independently to solve a purpose. Following are the main features that are available under this module.

1. Write your own code.
2. Multiple languages support.
3. ETL pipeline (Stream/Batch).
4. Code Snippets for periodic execution.
5. Scheduler (CRON Jobs).

To create a **Notebook** go to **Bigdata > Notebooks** and click on **Add New**, fill in the basic details - Name & description then click on Next button.

![BigData > Notebooks > Add New](/files/-Mj-C3xFw2dgMouT9FrS)

To write your code snippets click on **Add New CodeBlock**. Configure the details - language, ETL, type, sample code; of code block according to your use case and proceed with the coding.

In this example, we will read data from MongoDB collection using Apache Spark SQL in Scala.

![BigData > Notebooks > Create > MongoDB Read](/files/-Mj-C3xGL7-rnSbc3sLy)

Click on save button after writing the code and click on *\*Run* button available in actions of codeblock and then debug button to see the output of the code written.

![BigData > Notebooks > Create > MongoDB Read > Debug](/files/-Mj-C3xHam_LZuk_2O3H)

Once you are satisfied with the code and its output then save the code block and save the notebook for future access.

Also you can schedule the execution of a code block. All you need to do is click on the **Schedule** button available in actions of code block then define the scheduler details - Hourly, Daily or Custom Cron expression, click on Save button.

![BigData > Notebooks > CodeBlock > Schedule](/files/-Mj-C3xIZSd--R0R_DK9)

Then to enable the configured scheduler click on green play button i.e. **Schedule Job** button in the top left side of code block. Once this is enabled then the code block will start to execute periodically according to defined scheduler.

![BigData > Notebooks > CodeBlock > Scheduler > Enable](/files/-Mj-C3xJzAHzwEeKPYnN)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-beta.flex83.com/table-of-contents/transformations/notebooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
