sagemathinc / cocalc-snippets

collection of code snippets to assist working on cocalc
9 stars 14 forks source link

set variables in templates to default values #6

Open haraldschilly opened 6 years ago

haraldschilly commented 6 years ago

many examples, e.g. from physics, some with variables that have no value set. the goal of the ticket is to parse the code and look for variable names. if they appear, add them above the snippet with some initialization.

haraldschilly commented 6 years ago

here: 2c0a83d6363107fb89b954b760d6a2ea3650222b and b9949b758bd66815fbf28a07b38dc5959324ecdb

in cocalc, a first idea of that is implemented here: https://github.com/sagemathinc/cocalc/pull/3057/commits/2ec9f3edc4672e3d6cba58c661e590f7d8937378