Skip to content

Commit e7bb053

Browse files
committed
Deploying to gh-pages from @ 5e87eaa 🚀
1 parent 5d80b42 commit e7bb053

File tree

4 files changed

+132
-8
lines changed

4 files changed

+132
-8
lines changed

demos/readme/index.html

+33-2
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,46 @@
3333
<script src="index_files/libs/bootstrap/bootstrap.min.js"></script>
3434
<link href="index_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
3535
<link href="index_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
36+
</head><body class="fullcontent">// Document level settings ----
37+
38+
// Determine if we need to install R packages
39+
globalThis.qpyodideInstallPythonPackagesList = [''];
40+
41+
// Check to see if we have an empty array, if we do set to skip the installation.
42+
globalThis.qpyodideSetupPythonPackages = !(qpyodideInstallPythonPackagesList.indexOf("") !== -1);
43+
44+
// Display a startup message?
45+
globalThis.qpyodideShowStartupMessage = {{SHOWSTARTUPMESSAGE}};
46+
47+
// Describe the webR settings that should be used
48+
globalThis.qpyodideCustomizedPyodideOptions = {
49+
"baseURL": "https://cdn.jsdelivr.net/pyodide/v0.25.0/",
50+
"serviceWorkerUrl": "{{SERVICEWORKERURL}}",
51+
"homedir": "/home/pyodide",
52+
"channelType": "{{CHANNELTYPE}}"
53+
};
54+
55+
// Store cell data
56+
globalThis.qpyodideCellDetails = [{"options":{"warning":"true","out-width":"700px","fig-cap":"","results":"markup","message":"true","comment":"","autorun":"","context":"interactive","classes":"","out-height":"","fig-height":5,"output":"true","dpi":72,"fig-width":7,"label":""},"id":1,"code":"print(\"Hello Quarto-Pyodide World!\")"}];
57+
58+
3659

3760

38-
</head>
3961

40-
<body class="fullcontent">
4162

4263
<div id="quarto-content" class="page-columns page-rows-contents page-layout-article">
4364

4465
<main class="content" id="quarto-document-content">
66+
<script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs/loader.js"></script>
67+
<script id="qpyodide-monaco-editor-init">
68+
69+
// Configure the Monaco Editor's loader
70+
require.config({
71+
paths: {
72+
'vs': 'https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs'
73+
}
74+
});
75+
</script>
4576

4677
<header id="title-block-header" class="quarto-title-block default">
4778
<div class="quarto-title">

index.html

+33-2
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,32 @@
7575
gtag('js', new Date());
7676
gtag('config', 'G-ZV56KS59C3', { 'anonymize_ip': true});
7777
</script>
78+
</head><body class="nav-sidebar floating fullcontent">// Document level settings ----
79+
80+
// Determine if we need to install R packages
81+
globalThis.qpyodideInstallPythonPackagesList = [''];
82+
83+
// Check to see if we have an empty array, if we do set to skip the installation.
84+
globalThis.qpyodideSetupPythonPackages = !(qpyodideInstallPythonPackagesList.indexOf("") !== -1);
85+
86+
// Display a startup message?
87+
globalThis.qpyodideShowStartupMessage = {{SHOWSTARTUPMESSAGE}};
88+
89+
// Describe the webR settings that should be used
90+
globalThis.qpyodideCustomizedPyodideOptions = {
91+
"baseURL": "https://cdn.jsdelivr.net/pyodide/v0.25.0/",
92+
"serviceWorkerUrl": "{{SERVICEWORKERURL}}",
93+
"homedir": "/home/pyodide",
94+
"channelType": "{{CHANNELTYPE}}"
95+
};
96+
97+
// Store cell data
98+
globalThis.qpyodideCellDetails = [{"options":{"output":"true","context":"interactive","fig-cap":"","fig-width":7,"results":"markup","autorun":"","warning":"true","message":"true","label":"","classes":"","fig-height":5,"out-width":"700px","comment":"","out-height":"","dpi":72},"id":1,"code":"# Welcome to Python!\n\nprint(\"Hello, Quarto-Pyodide!\")\nprint(\"You've just entered the world of Python programming.\")\nprint(\"Let's start coding and exploring the amazing possibilities!\")\n\n# Feel free to add your own code below and have fun with Python!"}];
99+
100+
78101

79102

80-
</head>
81103

82-
<body class="nav-sidebar floating fullcontent">
83104

84105
<div id="quarto-search-results"></div>
85106
<header id="quarto-header" class="headroom fixed-top">
@@ -204,6 +225,16 @@
204225

205226
<!-- main -->
206227
<main class="content" id="quarto-document-content">
228+
<script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs/loader.js"></script>
229+
<script id="qpyodide-monaco-editor-init">
230+
231+
// Configure the Monaco Editor's loader
232+
require.config({
233+
paths: {
234+
'vs': 'https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs'
235+
}
236+
});
237+
</script>
207238

208239
<header id="title-block-header" class="quarto-title-block default">
209240
<div class="quarto-title">

qpyodide-code-cell-demo.html

+33-2
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,32 @@
111111
gtag('js', new Date());
112112
gtag('config', 'G-ZV56KS59C3', { 'anonymize_ip': true});
113113
</script>
114+
</head><body class="nav-sidebar floating">// Document level settings ----
115+
116+
// Determine if we need to install R packages
117+
globalThis.qpyodideInstallPythonPackagesList = [''];
118+
119+
// Check to see if we have an empty array, if we do set to skip the installation.
120+
globalThis.qpyodideSetupPythonPackages = !(qpyodideInstallPythonPackagesList.indexOf("") !== -1);
121+
122+
// Display a startup message?
123+
globalThis.qpyodideShowStartupMessage = {{SHOWSTARTUPMESSAGE}};
124+
125+
// Describe the webR settings that should be used
126+
globalThis.qpyodideCustomizedPyodideOptions = {
127+
"baseURL": "https://cdn.jsdelivr.net/pyodide/v0.25.0/",
128+
"serviceWorkerUrl": "{{SERVICEWORKERURL}}",
129+
"homedir": "/home/pyodide",
130+
"channelType": "{{CHANNELTYPE}}"
131+
};
132+
133+
// Store cell data
134+
globalThis.qpyodideCellDetails = [{"code":"1 + 1","id":1,"options":{"fig-cap":"","out-height":"","out-width":"700px","comment":"","message":"true","context":"interactive","fig-width":7,"warning":"true","fig-height":5,"results":"markup","output":"true","autorun":"","classes":"","label":"","dpi":72}},{"code":"1 + 1","id":2,"options":{"fig-cap":"","out-height":"","out-width":"700px","comment":"","message":"true","context":"interactive","fig-width":7,"warning":"true","fig-height":5,"results":"markup","output":"true","autorun":"","classes":"","label":"","dpi":72}},{"code":"greet = 'Hello'\ngreet","id":3,"options":{"fig-cap":"","out-height":"","out-width":"700px","comment":"","message":"true","context":"interactive","fig-width":7,"warning":"true","fig-height":5,"results":"markup","output":"true","autorun":"","classes":"","label":"","dpi":72}},{"code":"len(greet)","id":4,"options":{"fig-cap":"","out-height":"","out-width":"700px","comment":"","message":"true","context":"interactive","fig-width":7,"warning":"true","fig-height":5,"results":"markup","output":"true","autorun":"","classes":"","label":"","dpi":72}},{"code":"def square(x):\n return x**2\n\nsquare(8)","id":5,"options":{"fig-cap":"","out-height":"","out-width":"700px","comment":"","message":"true","context":"interactive","fig-width":7,"warning":"true","fig-height":5,"results":"markup","output":"true","autorun":"","classes":"","label":"","dpi":72}},{"code":"num_list = [1, 2, 3]\n[square(num)for num in num_list]","id":6,"options":{"fig-cap":"","out-height":"","out-width":"700px","comment":"","message":"true","context":"interactive","fig-width":7,"warning":"true","fig-height":5,"results":"markup","output":"true","autorun":"","classes":"","label":"","dpi":72}},{"code":"import pandas as pd\n\ndf = pd.DataFrame({\n 'Name': ['JJB', 'H', 'Alex', 'Steve'],\n 'Age': [18, 25, 33, 42]\n})\n\ndf","id":7,"options":{"fig-cap":"","out-height":"","out-width":"700px","comment":"","message":"true","context":"interactive","fig-width":7,"warning":"true","fig-height":5,"results":"markup","output":"true","autorun":"","classes":"","label":"","dpi":72}},{"code":"import pandas as pd \n\ndf.Age","id":8,"options":{"fig-cap":"","out-height":"","out-width":"700px","comment":"","message":"true","context":"interactive","fig-width":7,"warning":"true","fig-height":5,"results":"markup","output":"true","autorun":"","classes":"","label":"","dpi":72}}];
135+
136+
114137

115138

116-
</head>
117139

118-
<body class="nav-sidebar floating">
119140

120141
<div id="quarto-search-results"></div>
121142
<header id="quarto-header" class="headroom fixed-top">
@@ -257,6 +278,16 @@ <h2 id="toc-title">On this page</h2>
257278
</div>
258279
<!-- main -->
259280
<main class="content" id="quarto-document-content">
281+
<script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs/loader.js"></script>
282+
<script id="qpyodide-monaco-editor-init">
283+
284+
// Configure the Monaco Editor's loader
285+
require.config({
286+
paths: {
287+
'vs': 'https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs'
288+
}
289+
});
290+
</script>
260291

261292
<header id="title-block-header" class="quarto-title-block default">
262293
<div class="quarto-title">

tests/qpyodide-internal-cell.html

+33-2
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,32 @@
6666
"search-label": "Search"
6767
}
6868
}</script>
69+
</head><body class="nav-sidebar floating fullcontent">// Document level settings ----
70+
71+
// Determine if we need to install R packages
72+
globalThis.qpyodideInstallPythonPackagesList = [''];
73+
74+
// Check to see if we have an empty array, if we do set to skip the installation.
75+
globalThis.qpyodideSetupPythonPackages = !(qpyodideInstallPythonPackagesList.indexOf("") !== -1);
76+
77+
// Display a startup message?
78+
globalThis.qpyodideShowStartupMessage = {{SHOWSTARTUPMESSAGE}};
79+
80+
// Describe the webR settings that should be used
81+
globalThis.qpyodideCustomizedPyodideOptions = {
82+
"baseURL": "https://cdn.jsdelivr.net/pyodide/v0.25.0/",
83+
"serviceWorkerUrl": "{{SERVICEWORKERURL}}",
84+
"homedir": "/home/pyodide",
85+
"channelType": "{{CHANNELTYPE}}"
86+
};
87+
88+
// Store cell data
89+
globalThis.qpyodideCellDetails = [{"options":{"context":"interactive","output":"true","out-height":"","out-width":"700px","fig-height":5,"label":"","message":"true","results":"markup","comment":"","classes":"","dpi":72,"fig-cap":"","fig-width":7,"autorun":"","warning":"true"},"id":1,"code":"1 + 1"},{"options":{"context":"interactive","output":"true","out-height":"","out-width":"700px","fig-height":5,"label":"","message":"true","results":"markup","comment":"","classes":"","dpi":72,"fig-cap":"","fig-width":7,"autorun":"true","warning":"true"},"id":2,"code":"1 + 1"},{"options":{"context":"setup","output":"true","out-height":"","out-width":"700px","fig-height":5,"label":"","message":"true","results":"markup","comment":"","classes":"","dpi":72,"fig-cap":"","fig-width":7,"autorun":"","warning":"true"},"id":3,"code":"x = [1, 5, 3, -2]\ny = [-5, 8, 9, 4]"},{"options":{"context":"output","output":"true","out-height":"","out-width":"700px","fig-height":5,"label":"","message":"true","results":"markup","comment":"","classes":"","dpi":72,"fig-cap":"","fig-width":7,"autorun":"","warning":"true"},"id":4,"code":"import matplotlib.pyplot as plt\n\nprint(f\"x: {x}\")\n\nprint(f\"y: {y}\")\n\nplt.plot(x, y)"}];
90+
91+
6992

7093

71-
</head>
7294

73-
<body class="nav-sidebar floating fullcontent">
7495

7596
<div id="quarto-search-results"></div>
7697
<header id="quarto-header" class="headroom fixed-top">
@@ -137,6 +158,16 @@
137158

138159
<!-- main -->
139160
<main class="content" id="quarto-document-content">
161+
<script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs/loader.js"></script>
162+
<script id="qpyodide-monaco-editor-init">
163+
164+
// Configure the Monaco Editor's loader
165+
require.config({
166+
paths: {
167+
'vs': 'https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs'
168+
}
169+
});
170+
</script>
140171

141172
<header id="title-block-header" class="quarto-title-block default">
142173
<div class="quarto-title">

0 commit comments

Comments
 (0)