Some months ago I was contacted by a friend who works in my scientific field, regarding a collaboration project (we're both postdocs). We exchanged some emails and considerations. He provided me the dataset, and I developed a simple program able to make some interesting scientific discoveries (at least, from my understanding).
We've not given too much importance to this project, but now it turns out that it could lead to a scientific paper to submit to a good journal.
Even if I dedicated to this side project a small amount of time (~3 hours / week), it surely took away some time from my main project, which is much more important.
Now in the writing phase, I wondering if I should tell my supervisor about this project and this paper. On one hand, I'm worried that he might not like that I dedicated some working time to it instead of my main project... on the other side, I think he would be happy to collaborate in writing this paper with me and gain a new journal publication.
What do you think I should do?
What do you think my supervisor would say about this side project and its paper?