Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM
Machine Learning
Machine Learning
Machine Learning & AI
Manage Data
MLOps
Natural Language Processing
NumPy
Pandas
Polars
PySpark
Python Tips
Python Utilities
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

Loop through a list of data on your terminal

Table of Contents

Loop through a list of data on your terminal

You can run the same notebook with different data using papermill. Better yet, create a loop through a list of data on your terminal. Now you can do something else while letting the program runs across the different notebook!

In the code below, I created a different output notebook for different data ($value.ipynb). You can alternatively run the same notebook but save the output somewhere else 🙂

This could be helpful when you want to use the same code to visualize different data but doesn’t want to manually rerun the notebook for every data.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran