code: def _create_application(self):
          
          return Application(
              input=self.input,
              output=self.output,
              layout=self.ptpython_layout.layout,
              key_bindings=merge_key_bindings([
                  load_python_bindings(self),
                  load_auto_suggest_bindings(),
                  load_sidebar_bindings(self),
                  load_confirm_exit_bindings(self),
                  ConditionalKeyBindings(
                      load_open_in_editor_bindings(),
                      Condition(lambda: self.enable_open_in_editor)),
                  # Extra key bindings should not be active when the sidebar is visible.
                  ConditionalKeyBindings(
                      self.extra_key_bindings,
                      Condition(lambda: not self.show_sidebar))
              ]),
              color_depth=lambda: self.color_depth,
              paste_mode=Condition(lambda: self.paste_mode),
              mouse_support=Condition(lambda: self.enable_mouse_support),
              style=DynamicStyle(lambda: self._current_style),
              style_transformation=self.style_transformation,
              include_default_pygments_style=False,
              reverse_vi_search_direction=True)
docs: Create an `Application` instance.