Skip to content

Commit e14d66b

Browse files
committed
Deployed 1483a12 to 2025.10.1 with MkDocs 1.6.1 and mike 1.1.2
1 parent bbdac9e commit e14d66b

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

2025.10.1/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

2025.10.1/user-guide/configuration/index.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ <h2 id="file-or-inline">File or inline</h2>
11341134
<div class="language-HTML highlight"><span class="filename">Reference a configuration file</span><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="p">&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;py&quot;</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;main.py&quot;</span> <span class="na">config</span><span class="o">=</span><span class="s">&quot;pyscript.toml&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
11351135
</span></code></pre></div>
11361136
<p>If you use JSON, you can make it the value of the <code>config</code> attribute:</p>
1137-
<div class="language-HTML highlight"><span class="filename">JSON as the value of the config attribute.</span><pre><span></span><code><span id="__span-3-1"><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a><span class="p">&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;mpy&quot;</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;main.py&quot;</span> <span class="na">config</span><span class="o">=</span><span class="s">&#39;{&quot;packages&quot;:[&quot;arrr&quot;, &quot;numberwang&quot;]}&#39;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
1137+
<div class="language-HTML highlight"><span class="filename">JSON as the value of the config attribute.</span><pre><span></span><code><span id="__span-3-1"><a id="__codelineno-3-1" name="__codelineno-3-1" href="#__codelineno-3-1"></a><span class="p">&lt;</span><span class="nt">script</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;py&quot;</span> <span class="na">src</span><span class="o">=</span><span class="s">&quot;main.py&quot;</span> <span class="na">config</span><span class="o">=</span><span class="s">&#39;{&quot;packages&quot;:[&quot;arrr&quot;, &quot;numberwang&quot;]}&#39;</span><span class="p">&gt;&lt;/</span><span class="nt">script</span><span class="p">&gt;</span>
11381138
</span></code></pre></div>
11391139
<p>For historical and convenience reasons we still support the inline
11401140
specification of configuration information for <code>py</code> and <code>mpy</code> type scripts via a
@@ -1153,6 +1153,14 @@ <h2 id="file-or-inline">File or inline</h2>
11531153
with <a href="../pygame-ce"><code>py-game</code></a> or <a href="../editor"><code>py-editor</code></a>. For these use the config
11541154
attribute method.</p>
11551155
</div>
1156+
<div class="admonition warning">
1157+
<p class="admonition-title">Warning</p>
1158+
<p>Starting from PyScript 2025.10.1 the config guards against incompatible or not
1159+
available packages related to the current Pyodide version.</p>
1160+
<p>There is an ongoing effort to make chosing packages in Pyodide way more helpful
1161+
than it has ever been but right now be aware if a non existent package for a
1162+
specific Pyodide version cannot be found an error will be thrown.</p>
1163+
</div>
11561164
<h2 id="options">Options</h2>
11571165
<p>There are five core options (<a href="#interpreter"><code>interpreter</code></a>, <a href="#files"><code>files</code></a>,
11581166
<a href="#packages"><code>packages</code></a>, <a href="#javascript-modules"><code>js_modules</code></a> and
@@ -1171,16 +1179,16 @@ <h3 id="interpreter">Interpreter</h3>
11711179
for the Python interpreter you are configuring, or a fully qualified URL to
11721180
a custom version of the interpreter.</p>
11731181
<p>The following two examples are equivalent:</p>
1174-
<div class="language-TOML highlight"><span class="filename">Specify the interpreter version in TOML.</span><pre><span></span><code><span id="__span-5-1"><a id="__codelineno-5-1" name="__codelineno-5-1" href="#__codelineno-5-1"></a><span class="n">interpreter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;0.23.4&quot;</span>
1182+
<div class="language-TOML highlight"><span class="filename">Specify the interpreter version in TOML.</span><pre><span></span><code><span id="__span-5-1"><a id="__codelineno-5-1" name="__codelineno-5-1" href="#__codelineno-5-1"></a><span class="n">interpreter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;0.29.0&quot;</span>
11751183
</span></code></pre></div>
11761184
<div class="language-JSON highlight"><span class="filename">Specify the interpreter version in JSON.</span><pre><span></span><code><span id="__span-6-1"><a id="__codelineno-6-1" name="__codelineno-6-1" href="#__codelineno-6-1"></a><span class="p">{</span>
1177-
</span><span id="__span-6-2"><a id="__codelineno-6-2" name="__codelineno-6-2" href="#__codelineno-6-2"></a><span class="w"> </span><span class="nt">&quot;interpreter&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0.23.4&quot;</span>
1185+
</span><span id="__span-6-2"><a id="__codelineno-6-2" name="__codelineno-6-2" href="#__codelineno-6-2"></a><span class="w"> </span><span class="nt">&quot;interpreter&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0.29.0&quot;</span>
11781186
</span><span id="__span-6-3"><a id="__codelineno-6-3" name="__codelineno-6-3" href="#__codelineno-6-3"></a><span class="p">}</span>
11791187
</span></code></pre></div>
11801188
<p>The following JSON fragment uses a fully qualified URL to point to the same
11811189
version of Pyodide as specified in the previous examples:</p>
11821190
<div class="language-JSON highlight"><span class="filename">Specify the interpreter via a fully qualified URL.</span><pre><span></span><code><span id="__span-7-1"><a id="__codelineno-7-1" name="__codelineno-7-1" href="#__codelineno-7-1"></a><span class="p">{</span>
1183-
</span><span id="__span-7-2"><a id="__codelineno-7-2" name="__codelineno-7-2" href="#__codelineno-7-2"></a><span class="w"> </span><span class="nt">&quot;interpreter&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;https://cdn.jsdelivr.net/pyodide/v0.23.4/full/pyodide.mjs&quot;</span>
1191+
</span><span id="__span-7-2"><a id="__codelineno-7-2" name="__codelineno-7-2" href="#__codelineno-7-2"></a><span class="w"> </span><span class="nt">&quot;interpreter&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;https://cdn.jsdelivr.net/pyodide/v0.29.0/full/pyodide.mjs&quot;</span>
11841192
</span><span id="__span-7-3"><a id="__codelineno-7-3" name="__codelineno-7-3" href="#__codelineno-7-3"></a><span class="p">}</span>
11851193
</span></code></pre></div>
11861194
<h3 id="files">Files</h3>

0 commit comments

Comments
 (0)