public static GhidraJythonInterpreter get() {

		// Initialize the python environment if necessary.  Only needs to happen once.
		if (!pythonInitialized) {
			try {
				// Setup python home directory
				JythonUtils.setupJythonHomeDir();

				// Setup python cache directory
				JythonUtils.setupJythonCacheDir(TaskMonitor.DUMMY);

				// Indicate that we've initialized the python environment, which should
				// only happen once.
				pythonInitialized = true;
			}
			catch (Exception e) {
				Msg.showError(GhidraJythonInterpreter.class, null, "Python error",
					"Problem getting Ghirda Python interpreter", e);
				return null;
			}
		}

		// Set up our default system state, including prompt styles.
		PySystemState state = new PySystemState();
		state.ps1 = new PyString(">>> ");
		state.ps2 = new PyString("... ");

		// Return a new instance of our interpreter
		return new GhidraJythonInterpreter(state);
	}
Gets a new GhidraPythonInterpreter instance.

@return A new GhidraPythonInterpreter. Could be null if it failed to be created.
Ghidra/Features/Jython/src/main/java/ghidra/jython/GhidraJythonInterpreter.java