You probably want to use paste.deploy.loadapp to load the TurboGears app from the config file, then you can use webtest.TestApp to be able to perform calls to the app and tg.util.webtest.test_context ( http://turbogears.readthedocs.org/en/latest/reference/classes.html#tg.util.webtest.test_context ) to create a request context and have tg.request, tg.app_globals and so on available.
Then you can freely use the global objects from the notebook or perform new requests through app.get() On Fri, Oct 9, 2015 at 6:22 PM, Paul Kraus <[email protected]> wrote: > Anyone know how to get gearbox tgshell to run an iPython notebook or what > i need to do from within a notebook to import the project like gearbox > tgshell does? > > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/turbogears. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

