擅长:python、mysql、java
<p>不,<em>但是</em>可以从<code>.ipynb</code>生成<code>.py</code>脚本,该脚本可以<strong>然后</strong>转换为.exe</p>
<p>带<a href="https://nbconvert.readthedocs.io/en/latest/usage.html?highlight=executable#convert-script" rel="nofollow noreferrer">jupyter nbconvert</a>
(如果您使用的是Python,这已经包括在内)</p>
<p>在环境中:</p>
<pre><code>pip install nbconvert
jupyter nbconvert to script my_notebook.ipynb
</code></pre>
<p>将生成<code>my_notebook.py</code>。在</p>
<p>然后用<a href="https://www.pyinstaller.org" rel="nofollow noreferrer">Pyinstaller</a>:</p>
^{pr2}$
<p>现在您的文件夹中应该有一个<code>my_notebook.exe</code>和dist文件。在</p>
<p>来源:有点过时的<a href="https://medium.com/@erdmyzn/convert-jupyter-ipynb-to-python-py-and-python-py-to-file-exe-265329d9be95" rel="nofollow noreferrer">Medium Article about this</a></p>