cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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"

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group