cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to concatenate two notebooks?

397973
New Contributor III

I don't think it's possible but I thought I would check. 

I need to combine notebooks. While developing I might have code in various notebooks. I read them in with "%run".

Then when all looks good I combine many cells into fewer notebooks. 

Is there anyway to combine them? In Linux it would be like "cat file1 | cat file2 > new_output". 

1 REPLY 1

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @397973,

Combining multiple notebooks into a single notebook isn't an out-of-the-box feature, but will try to combine %run commands ando output them to see if it works, sort of like:

%run "/path/to/notebook1"
%run "/path/to/notebook2"

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now