Can I display an Ipython notebook hosted on bitbuc

2019-04-22 17:05发布

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!

3条回答
对你真心纯属浪费
2楼-- · 2019-04-22 17:09

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

查看更多
来,给爷笑一个
3楼-- · 2019-04-22 17:14

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

查看更多
ら.Afraid
4楼-- · 2019-04-22 17:29

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

查看更多
登录 后发表回答