deathbeds / jupyterlab-starters

Starter notebooks and directories in JupyterLab

Home Page:https://jupyterstarters.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expand templates in destination, commands

bollwyvl opened this issue · comments

Elevator Pitch

Currently, only the dest field has Jinja templates enabled, and can only see the body of text. Expanding what is available for templating, and what is templated, would allow JSON-only definitions to have more expressive power

Motivation

Over on robotlab, we want to do a simple copy of a folder, and then open a particular, known notebook.

Design Ideas

StarterManager:
  extra_starters:
    robotkernel-examples:
      src: {{ sys_prefix }}/var/www/robotkernel-examples
      commands:
        - id: filebrowser:open-path
          args:
            path: {{ dest }}/00 JupyterLab Interface.ipynb

The simplest approach may be to dump to JSON, apply Jinja, and then reload