[IPython-dev] Viewing IPython notebooks in GitLab
Martijn Vermaat
martijn at vermaat.name
Sun Oct 20 08:42:25 EDT 2013
Hi david,
Thanks for the interest. I was thinking this is probably too specific
for GitLab upstream (and of course calling nbconvert as an external
process during page rendering is not a very clean solution), so didn't
bother to create a pull request. I also did not get any response on my
GitLab mailing list announcement.
However, you convinced me it is worth a shot to at least discuss the
possibilities, so I submitted a pull request:
https://github.com/gitlabhq/gitlabhq/pull/5378 (don't know if this is
the best channel though)
If there's upstream interest, any help is welcome of course :)
thanks,
Martijn
2013/10/18 David Verelst <david.verelst at gmail.com>:
> Dear Martijn,
>
> This is very interesting. We are also running a Gitlab instance and I would
> be very interested in having this. Why not trying to get this merged
> upstream, it is a killer feature in my opinion :-) ? With the monthly
> updates on the Gitlab front it might be non trivial to keep it up to date. I
> can help you with testing and cleaning up the code for a nice pull request,
> but I would be overly ambitious by claiming I could do this by myself.
>
> Thanks for sharing this!
>
> Regards,
> David
>
>
> On 11 October 2013 19:15, Brian Granger <ellisonbg at gmail.com> wrote:
>>
>> Martijn,
>>
>> Thanks for letting us know about this. This is a perfect usage of
>> nbconvert and I am sure the users of GitLab will appreciate this.
>>
>> Cheers,
>>
>> Brian
>>
>> On Thu, Oct 10, 2013 at 3:04 PM, Martijn Vermaat <martijn at vermaat.name>
>> wrote:
>> > Hi all,
>> >
>> > At my institute we run a private instance of the GitLab software (a
>> > GitHub clone). We're also big fans of the IPython notebook, so the
>> > obivous result is many repositories in GitLab containing IPython
>> > notebooks.
>> >
>> > Unfortunately, clicking a notebook file in GitLab shows just the JSON
>> > source and because the raw files are not available anonymously, it's
>> > non-trivial to use the Notebook Viewer. (And many repositories are
>> > private on purpose anyway.)
>> >
>> > So I made a very simple hack that embeds an HTML view of a notebook
>> > directly in the GitLab page (of course by calling nbconvert).
>> >
>> > In case anyone is interested, I wrote some documentation here:
>> >
>> > https://gist.github.com/martijnvermaat/6926070
>> >
>> > Direct link to the patched GitLab master branch:
>> >
>> > https://github.com/martijnvermaat/gitlabhq/tree/blob-ipython-notebook
>> >
>> > cheers,
>> > Martijn
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev at scipy.org
>> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>>
>> --
>> Brian E. Granger
>> Cal Poly State University, San Luis Obispo
>> bgranger at calpoly.edu and ellisonbg at gmail.com
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
More information about the IPython-dev
mailing list