Closed matthewfeickert closed 6 years ago
@dkirkby I was talking with @alexarmstrongvi at CERN today and he mentioned this repo to me (quite nice). Just thought that it might be nice to add some badges to the README
especially if people are going to try to read them as in browser static notes in addition to using the Jupyter notebooks.
Let me know if you have any requests or edits that you'd like.
Thanks, I didn't know about nbviewer badges. The performance (and rendering) are much nicer for read-only browsing.
Perhaps a link to the Contents notebook would be a more useful entry point than the notebooks dir?
Btw, a condensed and somewhat overlapping set of notebooks from a recent summer school are here.
Are these badges documented anywhere? I only found some issue traffic. I am wondering if there is a similar badge for starting nbviewer in the "View as slides" mode.
Perhaps a link to the Contents notebook would be a more useful entry point than the notebooks dir?
Sure. That actually works really nicely on nbviewer too.
Any interest in having a duplicate of the Contents.ipynb
content in a README.md
in notebooks
? This would have the advantage that it would automatically load when the dir is visited on GitHub.
Btw, a condensed and somewhat overlapping set of notebooks from a recent summer school are here.
Thanks! I'll check them out too.
Are these badges documented anywhere?
They're all generated automatically from https://shields.io/
Is [there] a similar badge for starting nbviewer in the "View as slides" mode?
The answer seems to be kinda, but using slideviewer instead of nbviewer. However, slideviewer seems to require a url to an actual Jupyter notebook, instead of just a directory above where they exist. So you could create individual badges, but maybe not just a single one. However, this was also just from 5 minutes of searching so there might be a better solution in a GitHub Issue somewhere.
For my own (local and Binder) personal presentations I just use RISE. Example here (click the "launch binder" badge and then navigate to Notebooks/Slides.ipynb
for a live demo).
@dkirkby Okay, with ad8485c1e755e5d53c73f72881053917cde21d24 the nbviewer badge now links to the TOC notebook.
Any interest in having a duplicate of the Contents.ipynb content in a README.md in notebooks?
The Contents nb already contains most of the info in the README, and I try to avoid linking to the directory.
I just added a "slides" badge to this README that links directly to nbviewer with /format/slides/
in the URL.
The Contents nb already contains most of the info in the README, and I try to avoid linking to the directory.
Sure. Just to be clear on what I was suggesting (I may have not done a good job of describing it) was to take the TOC from Contents.ipynb
and add that to a notebooks/README.md
so that if someone were to visit MachineLearningStatistics/notebooks they would see the rendered TOC instead of just all of the files. But maybe you're linking to the directory comment is associated with the idea that you aren't expecting people to be navigating around on GitHub so much, especially if nbviewer is in place.
I just added a "slides" badge to this README that links directly to nbviewer with
/format/slides/
in the URL.
Hey that's great! Thanks for the tip. :+1:
Just to be clear on what I was suggesting
Ok, I misunderstood.
they would see the rendered TOC instead of just all of the files
Wouldn't the rendered TOC still appear below the (longish) listing of files?
you aren't expecting people to be navigating around on GitHub so much
Yes, that's what I meant.
Wouldn't the rendered TOC still appear below the (longish) listing of files?
True. So probably not really worth it.
Btw, are you working with Bob Kehoe at SMU? (We collaborate on DESI).
@dkirkby Nope. I work with @stephensekula on ATLAS.
The nbviewer badge added to the README is hyperlinked to the nbviewer page for the MachineLearningStatistics repo. This makes it easier to view the notebooks as a set of nicely rendered notes in browser (as compared to the view of the notebook that GitHub offers).