sjdv1982 / seamless

Seamless is a framework to set up reproducible computations (and visualizations) that respond to changes in cells. Cells contain the input data as well as the source code of the computations, and all cells can be edited interactively.
http://sjdv1982.github.io/seamless
Other
20 stars 6 forks source link

Module API needs work #146

Open sjdv1982 opened 2 years ago

sjdv1982 commented 2 years ago
  1. To select a part of a Module and use it as another module. See the use of nefertiti in the RRM project. Requires that the submodule is independent, i.e. does not import anything from its parent. Importing sibling modules should be OK (but may not work out of the box).

  2. To use the Module code as a Python module inside the ipython kernel. This is for testing purposes.

sjdv1982 commented 2 years ago

in the future, perhaps some kind of annotation syntax in the module definition that guides the selection of a submodule (selecting the right additional components to go along into the submodule selection)

sjdv1982 commented 1 year ago

Point 1 TODO. In general, ctx.mod = Module(); ctx.x = ctx.mod causes ctx.x to be a Cell, not a module.