charmplusplus / charm4py

Parallel Programming with Python and Charm++
https://charm4py.readthedocs.io
Apache License 2.0
290 stars 21 forks source link

Expose reference to InteractiveConsole via 'self' in interactive mode #154

Closed juanjgalvez closed 5 years ago

juanjgalvez commented 5 years ago

InteractiveConsole is a chare (a mainchare). This exposes a reference to it in the interactive prompt, via the 'self' name. This allows establishing Channels in the interactive prompt with remote chares, by:

channel = Channel(self, remote=other_chare)