pystitch / stitch

Write reproducible reports in Markdown
https://pystitch.github.io
MIT License
441 stars 13 forks source link

"https:" is missing for javascript libraries when invoking Chart.to_html() #53

Closed pybokeh closed 8 years ago

pybokeh commented 8 years ago

Hi, I am trying to render an altair chart. My HTML file fails to render it. When I looked at the HTML source file, I noticed that "https:" is missing for the javascript URLs located in the HEAD tag. For example, it shows:

<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//vega.github.io/vega/vega.js"></script>
<script src="//vega.github.io/vega-lite/vega-lite.js"></script>
<script src="//vega.github.io/vega-editor/vendor/vega-embed.js" charset="utf-8"></script>  

Instead of:

<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://vega.github.io/vega/vega.js"></script>
<script src="https://vega.github.io/vega-lite/vega-lite.js"></script>
<script src="https://vega.github.io/vega-editor/vendor/vega-embed.js" charset="utf-8"></script>  

I think that was the problem - sorry I am not very experienced with web development. I modified my HTML file by adding "https:" in front of those URLS and now my HTML renders the altair chart.

pybokeh commented 8 years ago

OMG, I am so sorry, I meant to post this at the altair repo :-(