actualNoteContentPart: ## app.openSidebarEmbed
  Opens an embed for the plugin (see [renderEmbed](/help/developing_amplenote_plugins/actions#renderEmbed) ) in the Peek Viewer, if it is available for the user. If the plugin has already opened a sidebar embed, the existing sidebar embed will be re-rendered by calling [renderEmbed](/help/developing_amplenote_plugins/actions#renderEmbed)  again with the latest passed args.
  Arguments
  	Number or object - if a Number, the aspect ratio to use for embed. Embeds are fully isolated from the hosting application, so they can't be sized dynamically based on the content of the embed (content in the embed is not accessible to the hosting application). Instead, an aspect ratio is supplied here that will be maintained in the embed.If an object, in the shape of:
  		aspectRatio - Number aspect ratio, as described above
  		id string identifying the specific sidebar embed. Multiple sidebar embeds can be opened by the same plugin by supplying unique id values for each one
  	...args arguments that will be passed to the plugin's renderEmbed action
  Returns
  	Boolean indicating whether the embed could be opened. Will return false in the mobile app, where there is no Peek Viewer.
  ```
  {  appOption(app) {    app.openSidebarEmbed(1, "one", [ 2, 3, 4 ]);  },  renderEmbed(app, ...args) {    return `<b>got:</b> ${ JSON.stringify(args) }`;  },} 
  ```
  
  Invoking from quick open (via appOption):
  
  
  
  
  
  Rendered in Peek Viewer, after selecting plugin in quick open:
  
  
  
  
  
  See [renderEmbed](/help/developing_amplenote_plugins/actions#renderEmbed)  for examples of communicating between an embed and the plugin that rendered it.
processedNoteContent: ---
  title: App Interface: Plugin methods to interact with ...
  headers: ## app.openSidebarEmbed
  ---
  app.openSidebarEmbed
  Opens an embed for the plugin (see [renderEmbed](/help/developing_amplenote_plugins/actions#renderEmbed)
   ) in the Peek Viewer, if it is available for the user. If the plugin has already opened a sidebar embed, the existing sidebar embed will be re-rendered by calling [renderEmbed](/help/developing_amplenote_plugins/actions#renderEmbed)
    again with the latest passed args.
  Arguments
  Number or object - if a Number, the aspect ratio to use for embed. Embeds are fully isolated from the hosting application, so they can't be sized dynamically based on the content of the embed (content in the embed is not accessible to the hosting application). Instead, an aspect ratio is supplied here that will be maintained in the embed.If an object, in the shape of:
  aspectRatio - Number aspect ratio, as described above
  id string identifying the specific sidebar embed. Multiple sidebar embeds can be opened by the same plugin by supplying unique id values for each one
  ...args arguments that will be passed to the plugin's renderEmbed action
  Returns
  Boolean indicating whether the embed could be opened. Will return false in the mobile app, where there is no Peek Viewer. {  appOption(app) {    app.openSidebarEmbed(1, "one", [ 2, 3, 4 ]);  },  renderEmbed(app, ...args) {    return `<b>got:</b> ${ JSON.stringify(args) }`;  },} 
  Invoking from quick open (via appOption): Rendered in Peek Viewer, after selecting plugin in quick open: See [renderEmbed](/help/developing_amplenote_plugins/actions#renderEmbed)
    for examples of communicating between an embed and the plugin that rendered it.
noteTitle: App Interface: Plugin methods to interact with user notes