ct({
      baseUrl: 'https://mybinder.org',
      spec: '{{ site.binder_repo_org }}/{{ site.binder_repo_name }}/{{ site.binder_repo_branch }}',
      provider: 'gh',
    })
    window.interact = interact
  } else {
    console.log("nbinteract already initialized...")
  }

  interact.prepare()
}

// Initialize nbinteract
initFunction(initializeNbinteract);
</script>
{% endif %}
