def activate(self, suffix='<STR_LIT>'):
from IPython.parallel.client.magics import ParallelMagics<EOL>try:<EOL><INDENT>ip = get_ipython()<EOL><DEDENT>except NameError:<EOL><INDENT>print("<STR_LIT>")<EOL>return<EOL><DEDENT>M = ParallelMagics(ip, self, suffix)<EOL>ip.magics_manager.register(M)<EOL>
Activate IPython magics associated with this View

        Defines the magics `%px, %autopx, %pxresult, %%px, %pxconfig`

        Parameters
        ----------

        suffix: str [default: '']
            The suffix, if any, for the magics.  This allows you to have
            multiple views associated with parallel magics at the same time.

            e.g. ``rc[::2].activate(suffix='_even')`` will give you
            the magics ``%px_even``, ``%pxresult_even``, etc. for running magics 
            on the even engines.