Python Databricks how to run all cells in another notebook except the last cell
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 11:04 AM
I have a Python Databricks notebook which I want to call/run another Databricks notebook using dbutils.notebook.run()... but I want to run all the cells in the "called" notebook except the last one.
Is there a way to do a count of cells in the called notebook? And then run the called notebook on all cells until CellCount-1 ?