home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 718340847

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/pull/1049#issuecomment-718340847 https://api.github.com/repos/simonw/datasette/issues/1049 718340847 MDEyOklzc3VlQ29tbWVudDcxODM0MDg0Nw== 9599 2020-10-29T03:45:47Z 2020-10-29T03:48:26Z OWNER

thebe is the first time I've seen a library that requires you to set up some global JavaScript configuration before loading the script itself.

I'm hesitant to add an extra template block just to cover that one case since it's such a rare pattern. But it's important that thebelab can be used with Datasette.

Would this pattern work for you instead?

```html+jinja {% block extra_head %}

<script type="text/x-thebe-config"> { requestKernel: true, binderOptions: { repo: "binder-examples/requirements", }, } </script> <script src="https://unpkg.com/thebelab@latest/lib/index.js"></script>

{% endblock %} ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
729017519  
Powered by Datasette · Queries took 0.983ms · About: github-to-sqlite