nbviewer icon indicating copy to clipboard operation
nbviewer copied to clipboard

add Gitlab support

Open srooks10 opened this issue 10 years ago • 6 comments

I am trying to convert our team to using notebooks for data analysis. A feature request is for non coders stakeholders to be able to easily read the notebooks. Our code is hosted on an internal instance of gitlab. Since #361 is being reviewed, would you consider adding gitlab (api) as a source for nbviewer?

srooks10 avatar Dec 01 '14 15:12 srooks10

I'd certainly review a PR for it, I used to use GitLab regularly.

rgbkrk avatar Dec 01 '14 15:12 rgbkrk

Upvote this if you implemented in-house GitLab support for your company and you were not allowed to publish it.

astrojuanlu avatar May 05 '17 10:05 astrojuanlu

I was looking to do the same for a WordPress plugin I'm developing, where you can render all sorts of document types, incl notebooks, directly from any Git VCS (well, Bitbucket, GH, GL..) in a post/page. And was fairly frustrated that it wouldn't work with Gitlab (or Bitbucket)..

However, the workaround is to replace the blob in the Gitlab URL with raw and voila, working:

https://gitlab.com/nilsnolde/wp-plugin-test/-/blob/master/folder.ipynb becomes

https://gitlab.com/nilsnolde/wp-plugin-test/-/raw/master/folder.ipynb

Same goes for Bitbucket, just that you'll have to replace src with raw.

nilsnolde avatar Mar 08 '20 10:03 nilsnolde

Hi all, this issue will likely be addressed here: https://github.com/jupyter/nbviewer/pull/879

@nilsnolde Please let @cbowdon know if you want to help or collaborate.

krinsman avatar Mar 08 '20 17:03 krinsman

Thanks for the PR link, only checked the issues!

Yeah, I considered opening a PR actually (good that I didn't start yet, looking at the already good work being done), but these days there's so much FOSS waiting to get done, it's hard to tackle another medium-big project.

However, I'd like to get back to this in a few weeks/months latest and try Bitbucket support. Should actually be easier than Gitlab, since the API is not so weird;)

nilsnolde avatar Mar 09 '20 00:03 nilsnolde

HI All,

What do you do if you need an API access token for gitlab? We have an on-premise gitlab server, and I think we need an API token for this to work. What do you recommend?

cmosguy avatar Feb 28 '22 17:02 cmosguy