Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2949681 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Mar 20, 2024
1 parent 29ef3c1 commit 3075bf6
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 19 deletions.
4 changes: 2 additions & 2 deletions examples/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list

<div class="quarto-listing quarto-listing-container-default" id="listing-listing">
<div class="list quarto-listing-default">
<div class="quarto-post image-right" data-index="0" data-categories="news,code,analysis" data-listing-date-sort="1710201600000" data-listing-file-modified-sort="1710978574937" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="41">
<div class="quarto-post image-right" data-index="0" data-categories="news,code,analysis" data-listing-date-sort="1710201600000" data-listing-file-modified-sort="1710978659030" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="41">
<div class="thumbnail">
<p><a href="./posts/post-with-code/index.html" class="no-external"></a></p><a href="./posts/post-with-code/index.html" class="no-external">
<p><img src="./posts/post-with-code/image.jpg" class="thumbnail-image"></p>
Expand Down Expand Up @@ -244,7 +244,7 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="news,code,analysis" data-listing-date-sort="1708300800000" data-listing-file-modified-sort="1710978574937" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="92">
<div class="quarto-post image-right" data-index="1" data-categories="news,code,analysis" data-listing-date-sort="1708300800000" data-listing-file-modified-sort="1710978659030" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="92">
<div class="thumbnail">
<p><a href="./posts/embed-slides/index.html" class="no-external"></a></p><a href="./posts/embed-slides/index.html" class="no-external">
<p><img src="./posts/embed-slides/image.jpg" class="thumbnail-image"></p>
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/posts/post-with-code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"id":1,"options":{"warning":"true","out-height":"","fig-height":5,"read-only":"false","label":"","out-width":"700px","message":"true","output":"true","dpi":72,"results":"markup","autorun":"","fig-width":7,"fig-cap":"","classes":"","comment":"","context":"interactive"},"code":"print(\"Hello {quarto-pyodide} blog world!\")"}];
globalThis.qpyodideCellDetails = [{"code":"print(\"Hello {quarto-pyodide} blog world!\")","id":1,"options":{"label":"","warning":"true","context":"interactive","fig-cap":"","read-only":"false","message":"true","classes":"","output":"true","results":"markup","autorun":"","comment":"","out-height":"","dpi":72,"fig-width":7,"fig-height":5,"out-width":"700px"}}];


</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/book/example-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"id":1,"code":"import numpy as np\n\n# Data for plotting\nt = np.arange(0.0, 2.0, 0.01)\ns = 1 + np.sin(2 * np.pi * t)\n\n# Print t\nprint(f\"Displaying 10 observations of `t`:\\n{t[:10]}\\n\")\n\nprint(\"Showing the first 10 values of `s`:\")\n# The last object in the cell does not need print.\ns[:10]","options":{"read-only":"false","out-height":"","context":"interactive","message":"true","out-width":"700px","output":"true","fig-height":5,"comment":"","autorun":"","warning":"true","fig-width":7,"dpi":72,"fig-cap":"","label":"","classes":"","results":"markup"}},{"id":2,"code":"import matplotlib.pyplot as plt\n\nfig, ax = plt.subplots()\nax.plot(t, s)\n\nax.set(xlabel='time (s)', ylabel='voltage (mV)',\n title='About as simple as it gets, folks')\nax.grid()\n\nplt.show()","options":{"read-only":"false","out-height":"","context":"interactive","message":"true","out-width":"700px","output":"true","fig-height":5,"comment":"","autorun":"","warning":"true","fig-width":7,"dpi":72,"fig-cap":"","label":"","classes":"","results":"markup"}}];
globalThis.qpyodideCellDetails = [{"id":1,"code":"import numpy as np\n\n# Data for plotting\nt = np.arange(0.0, 2.0, 0.01)\ns = 1 + np.sin(2 * np.pi * t)\n\n# Print t\nprint(f\"Displaying 10 observations of `t`:\\n{t[:10]}\\n\")\n\nprint(\"Showing the first 10 values of `s`:\")\n# The last object in the cell does not need print.\ns[:10]","options":{"warning":"true","comment":"","output":"true","autorun":"","fig-cap":"","classes":"","fig-height":5,"message":"true","dpi":72,"fig-width":7,"read-only":"false","out-width":"700px","out-height":"","context":"interactive","label":"","results":"markup"}},{"id":2,"code":"import matplotlib.pyplot as plt\n\nfig, ax = plt.subplots()\nax.plot(t, s)\n\nax.set(xlabel='time (s)', ylabel='voltage (mV)',\n title='About as simple as it gets, folks')\nax.grid()\n\nplt.show()","options":{"warning":"true","comment":"","output":"true","autorun":"","fig-cap":"","classes":"","fig-height":5,"message":"true","dpi":72,"fig-width":7,"read-only":"false","out-width":"700px","out-height":"","context":"interactive","label":"","results":"markup"}}];


</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/book/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"code":"print(\"Hello there! Welcome to a {quarto-pyodide} powered book!\")","options":{"read-only":"false","out-width":"700px","comment":"","classes":"","results":"markup","fig-width":7,"dpi":72,"context":"interactive","warning":"true","autorun":"","output":"true","label":"","out-height":"","message":"true","fig-cap":"","fig-height":5},"id":1}];
globalThis.qpyodideCellDetails = [{"id":1,"options":{"fig-width":7,"autorun":"","out-width":"700px","fig-height":5,"warning":"true","classes":"","read-only":"false","message":"true","fig-cap":"","label":"","results":"markup","context":"interactive","out-height":"","dpi":72,"comment":"","output":"true"},"code":"print(\"Hello there! Welcome to a {quarto-pyodide} powered book!\")"}];


</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/html-document/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"options":{"label":"","classes":"","warning":"true","out-height":"","results":"markup","output":"true","fig-width":7,"dpi":72,"comment":"","fig-height":5,"context":"interactive","read-only":"false","autorun":"","fig-cap":"","message":"true","out-width":"700px"},"code":"print(\"Hello there! Welcome to a quarto-pyodide powered HTML Document!\")","id":1}];
globalThis.qpyodideCellDetails = [{"options":{"comment":"","message":"true","context":"interactive","output":"true","out-height":"","label":"","dpi":72,"read-only":"false","autorun":"","classes":"","fig-width":7,"results":"markup","fig-cap":"","warning":"true","out-width":"700px","fig-height":5},"code":"print(\"Hello there! Welcome to a quarto-pyodide powered HTML Document!\")","id":1}];


</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/readme/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"options":{"results":"markup","autorun":"","message":"true","warning":"true","output":"true","out-width":"700px","label":"","fig-width":7,"dpi":72,"out-height":"","read-only":"false","fig-cap":"","fig-height":5,"classes":"","context":"interactive","comment":""},"id":1,"code":"n = 5\nwhile n > 0:\n print(n)\n n = n - 1\n\nprint('Blastoff!')"}];
globalThis.qpyodideCellDetails = [{"options":{"label":"","classes":"","output":"true","context":"interactive","read-only":"false","comment":"","dpi":72,"warning":"true","out-height":"","autorun":"","message":"true","fig-width":7,"fig-cap":"","results":"markup","fig-height":5,"out-width":"700px"},"id":1,"code":"n = 5\nwhile n > 0:\n print(n)\n n = n - 1\n\nprint('Blastoff!')"}];


</script>
Expand Down
4 changes: 2 additions & 2 deletions examples/revealjs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"id":1,"options":{"comment":"","output":"true","context":"interactive","fig-height":5,"results":"markup","autorun":"","out-width":"700px","read-only":"false","message":"true","fig-cap":"","warning":"true","classes":"","dpi":72,"label":"","fig-width":7,"out-height":""},"code":"n = 5\nwhile n > 0:\n print(n)\n n = n - 1\n\nprint('Blastoff!')"},{"id":2,"options":{"comment":"","output":"true","context":"interactive","fig-height":5,"results":"markup","autorun":"","out-width":"700px","read-only":"false","message":"true","fig-cap":"","warning":"true","classes":"","dpi":72,"label":"","fig-width":7,"out-height":""},"code":"import matplotlib.pyplot as plt\nimport numpy as np\n\nx = np.linspace(0, 2*np.pi, 100)\ny = np.sin(x)\nplt.plot(x, y)\nplt.title('Sine wave')\nplt.show()"},{"id":3,"options":{"comment":"","output":"true","context":"interactive","fig-height":5,"results":"markup","autorun":"","out-width":"700px","read-only":"false","message":"true","fig-cap":"","warning":"true","classes":"","dpi":72,"label":"","fig-width":7,"out-height":""},"code":"def say_hello(name):\n _________(f\"Hello there {name}!\")\n\nsay_hello(\"quarto-pyodide\")"},{"id":4,"options":{"comment":"","output":"true","context":"interactive","fig-height":5,"results":"markup","autorun":"","out-width":"700px","read-only":"false","message":"true","fig-cap":"","warning":"true","classes":"","dpi":72,"label":"","fig-width":7,"out-height":""},"code":"print(\"Hello quarto-pyodide RevealJS world!\")\n\n[x**2 for x in range(0, 5)]\n\n3 + 5"}];
globalThis.qpyodideCellDetails = [{"code":"n = 5\nwhile n > 0:\n print(n)\n n = n - 1\n\nprint('Blastoff!')","options":{"message":"true","fig-cap":"","autorun":"","warning":"true","label":"","output":"true","context":"interactive","read-only":"false","out-width":"700px","dpi":72,"comment":"","classes":"","results":"markup","fig-height":5,"fig-width":7,"out-height":""},"id":1},{"code":"import matplotlib.pyplot as plt\nimport numpy as np\n\nx = np.linspace(0, 2*np.pi, 100)\ny = np.sin(x)\nplt.plot(x, y)\nplt.title('Sine wave')\nplt.show()","options":{"message":"true","fig-cap":"","autorun":"","warning":"true","label":"","output":"true","context":"interactive","read-only":"false","out-width":"700px","dpi":72,"comment":"","classes":"","results":"markup","fig-height":5,"fig-width":7,"out-height":""},"id":2},{"code":"def say_hello(name):\n _________(f\"Hello there {name}!\")\n\nsay_hello(\"quarto-pyodide\")","options":{"message":"true","fig-cap":"","autorun":"","warning":"true","label":"","output":"true","context":"interactive","read-only":"false","out-width":"700px","dpi":72,"comment":"","classes":"","results":"markup","fig-height":5,"fig-width":7,"out-height":""},"id":3},{"code":"print(\"Hello quarto-pyodide RevealJS world!\")\n\n[x**2 for x in range(0, 5)]\n\n3 + 5","options":{"message":"true","fig-cap":"","autorun":"","warning":"true","label":"","output":"true","context":"interactive","read-only":"false","out-width":"700px","dpi":72,"comment":"","classes":"","results":"markup","fig-height":5,"fig-width":7,"out-height":""},"id":4}];


</script>
Expand Down Expand Up @@ -714,7 +714,7 @@ <h2>matplotlib Graphing with Pyodide</h2>
<section id="quarto-pyodide-countdown" class="slide level2">
<h2>quarto-{pyodide + countdown}</h2>
<p>Pair code cells with a <a href="https://github.com/gadenbuie/countdown/tree/main/quarto">countdown timer</a> to allow for practice</p>
<div id="timer_2b044df6adf43deb1658d9662fdd50aaae79e605" class="countdown" data-warn-when="0" data-update-every="1" data-play-sound="false" data-blink-colon="false" data-start-immediately="false" tabindex="0" style="top: 0;right: 0;">
<div id="timer_48c84a4ab3283661cf73fb201181e31c2505e2d8" class="countdown" data-warn-when="0" data-update-every="1" data-play-sound="false" data-blink-colon="false" data-start-immediately="false" tabindex="0" style="top: 0;right: 0;">
<div class="countdown-controls">
<button class="countdown-bump-down"></button>
<button class="countdown-bump-up">+</button>
Expand Down
2 changes: 1 addition & 1 deletion examples/website/example-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"id":1,"code":"import pandas as pd \nimport numpy as np \n\ndf = pd.DataFrame(\n {\n \"A\": 1.0,\n \"B\": pd.Timestamp(\"20130102\"),\n \"C\": pd.Series(1, index=list(range(4)), dtype=\"float32\"),\n \"D\": np.array([3] * 4, dtype=\"int32\"),\n \"E\": pd.Categorical([\"test\", \"train\", \"test\", \"train\"]),\n \"F\": \"foo\",\n }\n)\n\n\ndf","options":{"label":"","context":"interactive","out-height":"","dpi":72,"fig-height":5,"read-only":"false","message":"true","results":"markup","output":"true","classes":"","warning":"true","fig-width":7,"out-width":"700px","autorun":"","fig-cap":"","comment":""}}];
globalThis.qpyodideCellDetails = [{"code":"import pandas as pd \nimport numpy as np \n\ndf = pd.DataFrame(\n {\n \"A\": 1.0,\n \"B\": pd.Timestamp(\"20130102\"),\n \"C\": pd.Series(1, index=list(range(4)), dtype=\"float32\"),\n \"D\": np.array([3] * 4, dtype=\"int32\"),\n \"E\": pd.Categorical([\"test\", \"train\", \"test\", \"train\"]),\n \"F\": \"foo\",\n }\n)\n\n\ndf","id":1,"options":{"autorun":"","fig-width":7,"warning":"true","classes":"","fig-cap":"","out-height":"","comment":"","fig-height":5,"read-only":"false","results":"markup","context":"interactive","dpi":72,"label":"","out-width":"700px","message":"true","output":"true"}}];


</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"code":"print(\"Hello there! Welcome to a quarto-pyodide powered website!\")","options":{"message":"true","context":"interactive","warning":"true","fig-height":5,"fig-cap":"","out-height":"","dpi":72,"results":"markup","output":"true","fig-width":7,"autorun":"","classes":"","comment":"","out-width":"700px","label":"","read-only":"false"},"id":1}];
globalThis.qpyodideCellDetails = [{"id":1,"options":{"context":"interactive","comment":"","results":"markup","fig-height":5,"read-only":"false","warning":"true","classes":"","message":"true","label":"","out-width":"700px","output":"true","fig-width":7,"autorun":"","fig-cap":"","dpi":72,"out-height":""},"code":"print(\"Hello there! Welcome to a quarto-pyodide powered website!\")"}];


</script>
Expand Down
15 changes: 14 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
}

// Store cell data
globalThis.qpyodideCellDetails = [{"code":"# Welcome to Python!\n\nprint(\"Hello, Quarto-Pyodide!\")\nprint(\"You've just entered the world of Python programming.\")\n\n# Let's make a graph\nimport matplotlib.pyplot as plt\nplt.plot([1, 2, 3, 4], [1, 4, 9, 16])\nplt.ylabel('Magic Numbers')\nplt.show()\n\n# Feel free to add your own code below and have fun with Python!","id":1,"options":{"fig-height":5,"output":"true","read-only":"false","warning":"true","results":"markup","fig-cap":"","label":"","context":"interactive","fig-width":7,"message":"true","autorun":"","comment":"","dpi":72,"classes":"","out-height":"","out-width":"700px"}}];
globalThis.qpyodideCellDetails = [{"options":{"autorun":"","message":"true","fig-height":5,"context":"interactive","dpi":72,"out-width":"700px","results":"markup","out-height":"","fig-width":7,"warning":"true","classes":"","output":"true","fig-cap":"","comment":"","label":"","read-only":"false"},"id":1,"code":"# Welcome to Python!\n\nprint(\"Hello, Quarto-Pyodide!\")\nprint(\"You've just entered the world of Python programming.\")\n\n# Let's make a graph\nimport matplotlib.pyplot as plt\nplt.plot([1, 2, 3, 4], [1, 4, 9, 16])\nplt.ylabel('Magic Numbers')\nplt.show()\n\n# Feel free to add your own code below and have fun with Python!"}];


</script>
Expand Down Expand Up @@ -628,6 +628,19 @@ <h1 class="title">Hello from quarto-pyodide!</h1>
<div id="qpyodide-insertion-location-1"></div>
<noscript>Please enable JavaScript to experience the dynamic code cell content on this page.</noscript>
<p>At its core, the <a href="https://github.com/coatless-quarto/pyodide"><code>quarto-pyodide</code> extension</a> is designed to empower you to run <em>Python</em> code directly in your web browser using familiar reporting tools, all without the need for an external Python server. Moreover, the extension abstracts away the need to know HTML or JavaScript to use Pyodide. Just write Python code like you usually would! Though, it’s worth noting that you can also choose to unlock the full potential of Pyodide and create more complex applications independently by directly using <a href="https://pyodide.org/en/stable/">Pyodide’s JavaScript API</a>, granting you unparalleled freedom to harness the power of Python in innovative ways.</p>
<div class="callout callout-style-default callout-important callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Important
</div>
</div>
<div class="callout-body-container callout-body">
<p>This Quarto extension is open source software and is <strong>not affiliated with</strong> Posit, Quarto, or Pyodide. The extension is at best a community effort to simplify the integration of Pyodide inside of Quarto generated documents.</p>
</div>
</div>



Expand Down
Loading

0 comments on commit 3075bf6

Please sign in to comment.