thomash
thomash

Reputation: 219

Can I display an Ipython notebook hosted on bitbucket?

I have a very simple notebook, hosted on github and on bitbucket. The github URL displays fine in the nbviewer, but the bitbucket URL - which should indicate the same trivial notebook - does not work with the nbviewer.

Is it possible that nbviewer only takes github notebooks?

Later comment: my repo was private - so that was at least one reason why it could not work!

Upvotes: 10

Views: 7203

Answers (3)

Luis
Luis

Reputation: 3497

As pointed out by @ThomasK in the comments, you can display a notebook from bitbucket if you copy the raw address.

Just click on the three dots next to your notebook and copy the address that you get when you click on Open raw.

enter image description here

Copy this address...

enter image description here

... and paste it in the text box in https://nbviewer.jupyter.org/ ...

enter image description here

... and it will render your notebook:

enter image description here

Upvotes: 0

HurnsMobile
HurnsMobile

Reputation: 4381

Since this is/was the first result when googling for this, I just thought I'd update and let everyone know that this is now an add-on available in Bitbucket. You can find it under Settings -> Find Integrations. The source and issue tracker are available here - https://bitbucket.org/bitbucket/bitbucket-nbviewer

Upvotes: 4

Stefanus
Stefanus

Reputation: 1747

Based on this issue on Bitbucket's issue tracker, it does not seem to be supported yet.

Upvotes: 2

Related Questions