I am trying to understand how difficult it would be to set up a custom environment for people querying syntax trees. Ideally, I would like to set up a database server and provide people with an environment where the database connection is already open and the functions they use to execute queries are already defined.
The attachment shows a session that does this. I would like to make it possible to get started without executing the lines at the beginning that open the database and define the functions. I have only been using Jupyter for a few weeks, but I am very impressed and would like to make this kind of functionality available in a user-friendly way to my own very specialized community.
Can you help me know where to look in the documentation, or where to find examples of how people have done this?
Thanks!
Jonathan