deathbeds / jupyterlab-starters

Starter notebooks and directories in JupyterLab
https://jupyterstarters.readthedocs.io
BSD 3-Clause "New" or "Revised" License
36 stars 8 forks source link

Allow custom label for Start button #32

Open datakurre opened 4 years ago

datakurre commented 4 years ago

For a continuing starter, clicking Start button again and again sounds confusing. On the other hand, changing button labels in fly is also confusing...

So, maybe not changes yet, but some discussion.

bollwyvl commented 4 years ago

If this was built into rjsf uiSchema, it would already be there, but for whatever reason, this is not supported.

If it was like a cassette recorder, there would be all of the buttons I remember reverently learning as a small child ⏪ ⏸⏺⏹▶️⏩.

The time-travel piece would be :scream: (see other reference about git) but let's not get ahead of ourselves.

So if this (and the jss styling) did exist, I'd imagine something like:


      "whitepaper-single": {
        "type": "notebook",
        "label": "Something",
        "description": "It does... something",
        "src": "something.ipynb",
        "tools": [
            {
                "command": {"id": "starters:cancel"},
                "title": "ABORT",
                "description": "stop the madness",
                "icon": "<svg><text>⏹</text></svg>",
                "style": {
                    "color": "orange"
                }
            },
            {
                "command": {"id": "starters:advance"},
                "title": "Make it so",
                "description": "do my bidding",
                "icon": "<svg><text>▶️</text></svg>",
                "style": {
                    "color": "blue"
                }
            }
        ]
      },

By making them commands, one could make some very interesting stuff indeed... and this is very close, already, to the specification of the JupyterLab toolbar, so it might make sense to use that instead of the existing custom button component (though they probably need to be bigger than default toolbar buttons).

bollwyvl commented 4 years ago

oh, and docs are up: https://jupyterstarters.readthedocs.io