diff --git a/examples/blog/index.html b/examples/blog/index.html index 73827f5..f78bdb4 100644 --- a/examples/blog/index.html +++ b/examples/blog/index.html @@ -205,7 +205,7 @@
Categories
-
+
-
+

diff --git a/examples/blog/posts/post-with-code/index.html b/examples/blog/posts/post-with-code/index.html index 19e8795..7d0adfe 100644 --- a/examples/blog/posts/post-with-code/index.html +++ b/examples/blog/posts/post-with-code/index.html @@ -230,7 +230,7 @@ } // Store cell data -globalThis.qpyodideCellDetails = [{"code":"print(\"Hello {quarto-pyodide} blog world!\")","id":1,"options":{"warning":"true","results":"markup","output":"true","label":"","out-height":"","out-width":"700px","comment":"","fig-width":7,"context":"interactive","message":"true","fig-height":5,"classes":"","fig-cap":"","dpi":72,"autorun":""}}]; +globalThis.qpyodideCellDetails = [{"options":{"output":"true","fig-cap":"","message":"true","warning":"true","label":"","comment":"","autorun":"","classes":"","read-only":"false","dpi":72,"out-height":"","fig-width":7,"results":"markup","context":"interactive","fig-height":5,"out-width":"700px"},"id":1,"code":"print(\"Hello {quarto-pyodide} blog world!\")"}]; @@ -1135,7 +1135,8 @@

Post With Interactive Code

}, fontSize: '17.5pt', // Bootstrap is 1 rem renderLineHighlight: "none", // Disable current line highlighting - hideCursorInOverviewRuler: true // Remove cursor indictor in right hand side scroll bar + hideCursorInOverviewRuler: true, // Remove cursor indictor in right hand side scroll bar + readOnly: thiz.options['read-only'] ?? false } ); diff --git a/examples/book/example-page.html b/examples/book/example-page.html index 9029a2a..b3d12f9 100644 --- a/examples/book/example-page.html +++ b/examples/book/example-page.html @@ -230,7 +230,7 @@ } // Store cell data -globalThis.qpyodideCellDetails = [{"id":1,"options":{"message":"true","output":"true","autorun":"","fig-height":5,"dpi":72,"results":"markup","classes":"","warning":"true","context":"interactive","out-height":"","fig-cap":"","out-width":"700px","label":"","comment":"","fig-width":7},"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]"},{"id":2,"options":{"message":"true","output":"true","autorun":"","fig-height":5,"dpi":72,"results":"markup","classes":"","warning":"true","context":"interactive","out-height":"","fig-cap":"","out-width":"700px","label":"","comment":"","fig-width":7},"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()"}]; +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":{"context":"interactive","autorun":"","classes":"","fig-width":7,"label":"","out-width":"700px","warning":"true","results":"markup","message":"true","output":"true","fig-height":5,"dpi":72,"comment":"","fig-cap":"","read-only":"false","out-height":""}},{"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":{"context":"interactive","autorun":"","classes":"","fig-width":7,"label":"","out-width":"700px","warning":"true","results":"markup","message":"true","output":"true","fig-height":5,"dpi":72,"comment":"","fig-cap":"","read-only":"false","out-height":""}}]; @@ -1208,7 +1208,8 @@

2  - + Sample quarto-pyodide Book Project