# Fork multiple notebooks

**URL:** <https://talk.observablehq.com/t/fork-multiple-notebooks/2004>\
**Category:** Uncategorized\
**Created:** [May 24, 2019, 2:14pm UTC](https://talk.observablehq.com/t/fork-multiple-notebooks/2004 "2019-05-24T14:14:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pstuffa](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/pstuffa/32/837_2.png) [@pstuffa](https://talk.observablehq.com/u/pstuffa)\
**Post date:** [May 24, 2019, 2:14pm UTC](https://talk.observablehq.com/t/fork-multiple-notebooks/2004/1 "2019-05-24T14:14:34Z")

</div>

Forking is great, but sometimes I’m basically combining two notebooks into one and I would like to give credit to both. I usually do this by saying that within the notebook, but it always feels somewhat arbitrary which notebook “gets the fork.” I’m not sure exactly how this would work, but would be interesting if there was a way to multi-fork, or maybe have a references section that can say which notebooks this was based on?

---

<div class="post-metadata">

**Author:** ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)\
**Post date:** [May 24, 2019, 2:28pm UTC](https://talk.observablehq.com/t/fork-multiple-notebooks/2004/2 "2019-05-24T14:28:03Z")

</div>

You can merge any notebook into any other notebook (to avoid copy-pasting the content). The only caveat is that you have to know the notebooks’ identifiers.

```
https://observablehq.com/compare/{base}...{target}

```

Where `{base}` is the id of the notebook you want to merge _into_, and `{target}` is the id of the notebook you want to merge _from_. You can find the id of a notebook fairly easily now by clicking on History in the notebook menu, and then copying it from the URL.

We don’t currently surface this information in the byline, though, so if you want to give credit, I recommend doing so in the content of the notebook itself. You could also consider importing the notebook instead, if appropriate.

---

<div class="post-metadata">

**Author:** ![pstuffa](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/pstuffa/32/837_2.png) [@pstuffa](https://talk.observablehq.com/u/pstuffa)\
**Post date:** [May 24, 2019, 2:29pm UTC](https://talk.observablehq.com/t/fork-multiple-notebooks/2004/3 "2019-05-24T14:29:23Z")

</div>

Thanks!
