'Override to add interactive environment specific template vars.'

def _render(self, render_vars, trans=None, embedded=None, **kwargs):

    render_vars['embedded'] = self._parse_embedded(embedded)
    render_vars.update(vars={})
    if ('get_api_key' not in render_vars):
        def get_api_key():
            return api_keys.ApiKeyManager(trans.app).get_or_create_api_key(trans.user)
        render_vars['get_api_key'] = get_api_key
    if ('plugin_path' not in render_vars):
        render_vars['plugin_path'] = os.path.abspath(self.path)
    if (self.config.get('plugin_type', 'visualization') == 'interactive_environment'):
        try:
            request = self.INTENV_REQUEST_FACTORY(trans, self)
        except:
            log.exception('IE    plugin    request    handling    failed')
            return trans.fill_template('message.mako', message='Loading    the    interactive    environment    failed,    please    contact    the    {admin_tag}    for    assistance'.format(admin_tag=('<a    href="mailto:{admin_mail}">Galaxy    administrator</a>'.format(admin_mail=trans.app.config.error_email_to) if trans.app.config.error_email_to else 'Galaxy    administrator')), status='error')
        render_vars['ie_request'] = request
    template_filename = self.config['entry_point']['file']
    return trans.fill_template(template_filename, template_lookup=self.template_lookup, **render_vars)
