SwissDataScienceCenter / renku-jupyterlab-ts

A Renku extension for JupyterLab.
https://datascience.ch/solutions/#renku
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Add a "renku-run" button in the notebook #7

Closed ebiiii closed 5 years ago

ebiiii commented 6 years ago

Currently every execution inside the notebook is not tracking the output (this is fine for experimenting and exploration). But if someone want to do so, she would be required to open a terminal and type the renku run command. The idea here would be some shortcut to clean previous executions (untracked ones), and run the whole notebook in a deterministic manner (all cells in the right order) and track all outpus.

rokroskar commented 6 years ago

This is exactly what is planned with our CrowdAI integration by building an extension that makes this easy: https://jupyterlab.readthedocs.io/en/stable/developer/extension_dev.html#developer-extensions

leafty commented 6 years ago

Note that i fear this can end up as implementation nightmare :tm:

rokroskar commented 6 years ago

why?

leafty commented 6 years ago

Because you need to wrap renku run around and start the kernel inside.

rokroskar commented 6 years ago

oh I had in mind something much simpler... basically do the cleanup, then do renku run with either papermill or nbconvert + python in a (sub)shell. You could do it on a branch and create a merge request or just do it on the same branch and commit the result.

rokroskar commented 6 years ago

@ebiiii have a look at https://github.com/SwissDataScienceCenter/renku-jupyterlab-ts -- for the time being, this only adds a command to the command palette.

ebiiii commented 6 years ago

Looks like it is doing the job. Thanks!

Maybe for the future, a reminder for the user that there are un-pushed changes before he closes the notebook or the lab. ;-)

rokroskar commented 5 years ago

closed by #8