For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Cerebro not recognizing code changes

  • Two questions -

    How does one user-interrupt a backtrader cerebro engine from running? Looked into Runstop() but the intention is to keep the engine always running except if there is an exceptional market or other event which needs manual user interference, so runstop does not work for this purpose.

    Separately, right now I am restarting spyder every time I have made code changes because otherwise cerebro keeps running the earlier unchanged version - is there an easier way to get cerebro to take the changes?

    Thanks a lot,

Log in to reply