Skip to content

Commit

Permalink
Merge pull request #275 from alexisduque/fix-requirejs-plotly
Browse files Browse the repository at this point in the history
requirejs should be loaded in the header with plotly
  • Loading branch information
SylvainCorlay authored Jul 1, 2019
2 parents 5dfb744 + 539fed1 commit eeaff34
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

<script src="{{resources.base_url}}voila/static/jquery.min.js"></script>

<script
src="{{resources.base_url}}voila/static/require.min.js"
integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA="
crossorigin="anonymous">
</script>

<script id="jupyter-config-data" type="application/json">
{
"baseUrl": "{{resources.base_url}}",
Expand All @@ -33,11 +39,6 @@

{% block footer %}
{% block footer_js %}
<script
src="{{resources.base_url}}voila/static/require.min.js"
integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA="
crossorigin="anonymous">
</script>
<script>
requirejs.config({ baseUrl: '{{resources.base_url}}voila/', waitSeconds: 30})
requirejs(
Expand Down

0 comments on commit eeaff34

Please sign in to comment.