public void init(PyGhidraConsole pythonSideConsole) {
        if (pyghidraConsole != null) {
            throw new AssertException("the interpreter has already been initialized");
        }
        pyghidraConsole = pythonSideConsole;
        console.addFirstActivationCallback(pyghidraConsole::restart);
        console.addAction(new CancelAction(pyghidraConsole));
        console.addAction(new ResetAction(pyghidraConsole));
    }
Initializes the interpreter with the provided PyGhidraConsole.

This method is for <b>internal use only</b> and is only public so it can be
called from Python.

@param pythonSideConsole the python side console
@throws AssertException if the interpreter has already been initialized
Ghidra/Features/PyGhidra/src/main/java/ghidra/pyghidra/interpreter/PyGhidraInterpreter.java