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". 

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"