jupyter / nbviewer

nbconvert as a web service: Render Jupyter Notebooks as static web pages
https://nbviewer.jupyter.org
Other
2.22k stars 551 forks source link

add Gitlab support #371

Open srooks10 opened 9 years ago

srooks10 commented 9 years ago

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?

rgbkrk commented 9 years ago

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

astrojuanlu commented 7 years ago

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

nilsnolde commented 4 years ago

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.

krinsman commented 4 years ago

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.

nilsnolde commented 4 years ago

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;)

cmosguy commented 2 years ago

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?