probcomp / iventure

An interactive, browser-based probabilistic programming environment.
Apache License 2.0
14 stars 2 forks source link

Implement arguments of some form for cell magics #12

Open axch opened 7 years ago

axch commented 7 years ago

so it becomes possible to write something like

%%venturescript --debug-show-python-stack-trace
......

I don't know what the right interface is for this, exactly, or whether IPython already has facilities for making this sort of thing easy (without having to parse the cell for things that look like command line arguments).

The reason this would be useful is that a large fraction of the times that someone has wanted me to help debug a Venture crash in an iVenture notebook, I have wanted the Python stack trace in order to localize the error.

fsaad commented 7 years ago

I have a similar issue (now resolved) for dot command; it works but the parser for handling -- was a major hack which should probably rewritten.

https://github.com/probcomp/iventure/issues/9