Skip to content

Commit

Permalink
Add banner to the sandbox stating location of table files
Browse files Browse the repository at this point in the history
  • Loading branch information
alarthast committed Oct 24, 2024
1 parent 0b2034b commit 5c13e9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ehrql/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def run(dummy_tables_path):
readline.set_completer(rlcompleter.Completer(namespace).complete)

# Start running a Python REPL.
code.interact(local=namespace)
banner = f"This is an ehrQL sandbox using the tables in {dummy_tables_path}."
code.interact(banner=banner, local=namespace)


def excepthook(type_, exc, tb):
Expand Down

0 comments on commit 5c13e9d

Please sign in to comment.