RuntimeError: The Session graph is empty

Welcome to Anvil.

Please can you edit your question and wrap the python code in triple back ticks like this so it formats it correctly :
```
<code>
```
Once it is easier to read, more people might help.