Skip to content

Commit 5a8b109

Browse files
committed
deploy: 0c7459d
1 parent fd2bd46 commit 5a8b109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started/python.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<span class=grvsc-line><span class=grvsc-source><span class=mtk14>open</span><span class=mtk1> </span><span class=mtk9>Fable.Python.Builtins</span></span></span>
33
<span class=grvsc-line><span class=grvsc-source></span></span>
44
<span class=grvsc-line><span class=grvsc-source><span class=mtk14>let</span><span class=mtk1> </span><span class=mtk5>file</span><span class=mtk1> </span><span class=mtk14>=</span><span class=mtk1> builtins.</span><span class=mtk10>``</span><span class=mtk5>open</span><span class=mtk10>``</span><span class=mtk14>(</span><span class=mtk10>"test.txt"</span><span class=mtk14>,</span><span class=mtk1> OpenTextMode.Write</span><span class=mtk14>)</span></span></span>
5-
<span class=grvsc-line><span class=grvsc-source><span class=mtk1>file.write</span><span class=mtk14>(</span><span class=mtk10>"Hello World!"</span><span class=mtk14>)</span><span class=mtk1> </span><span class=mtk14>|></span><span class=mtk1> ignore</span></span></span></code></pre><article class="message is-info"><div class=message-body><div><p>Python bindings are early stage, so some APIs are not yet available.<p>You can report missing APIs or send PR on the <a href=https://github.com/fable-compiler/Fable.Python>Fable.Python repository</a></div></div></article><li><p>Run Fable in watch mode<pre class="atom-one-light grvsc-container"data-index=3 data-language=bash><code class=grvsc-code><span class=grvsc-line><span class=grvsc-source><span class=mtk1>dotnet fable watch</span></span></span></code></pre><p>If you run your node script again, you should see a new file <code>test.txt</code> with the content <code>Hello World</code>.<p>Try changing the content of <code>Hello World</code> to something else and re-run your script.<p>You should see that Fable re-compile your code and the file content changed.</ul></div></div></section><div class="section bd-docs-pagination bd-pagination-links"><a class="button bd-fat-button is-primary is-light bd-pagination-prev" href="/docs/getting-started/typescript.html"><i></i><span class="is-hidden-mobile"><em>Getting started</em><strong>TypeScript</strong></span></a><a class="button bd-fat-button is-primary is-light bd-pagination-next" href="/docs/getting-started/rust.html"><span class="is-hidden-mobile"><em>Getting started</em><strong>Rust</strong></span><i></i></a></div></div></div></div></div><script async="" src="/resources/nacara-standard-layouts/scripts/menu.js"></script></body></html>
5+
<span class=grvsc-line><span class=grvsc-source><span class=mtk1>file.write</span><span class=mtk14>(</span><span class=mtk10>"Hello World!"</span><span class=mtk14>)</span><span class=mtk1> </span><span class=mtk14>|></span><span class=mtk1> ignore</span></span></span></code></pre><article class="message is-info"><div class=message-body><div><p>Python bindings are early stage, so some APIs are not yet available.<p>You can report missing APIs or send PR on the <a href=https://github.com/fable-compiler/Fable.Python>Fable.Python repository</a></div></div></article><li><p>Run Fable in watch mode<pre class="atom-one-light grvsc-container"data-index=3 data-language=bash><code class=grvsc-code><span class=grvsc-line><span class=grvsc-source><span class=mtk1>dotnet fable watch --lang python</span></span></span></code></pre><p>If you run your node script again, you should see a new file <code>test.txt</code> with the content <code>Hello World</code>.<p>Try changing the content of <code>Hello World</code> to something else and re-run your script.<p>You should see that Fable re-compile your code and the file content changed.</ul></div></div></section><div class="section bd-docs-pagination bd-pagination-links"><a class="button bd-fat-button is-primary is-light bd-pagination-prev" href="/docs/getting-started/typescript.html"><i></i><span class="is-hidden-mobile"><em>Getting started</em><strong>TypeScript</strong></span></a><a class="button bd-fat-button is-primary is-light bd-pagination-next" href="/docs/getting-started/rust.html"><span class="is-hidden-mobile"><em>Getting started</em><strong>Rust</strong></span><i></i></a></div></div></div></div></div><script async="" src="/resources/nacara-standard-layouts/scripts/menu.js"></script></body></html>

0 commit comments

Comments
 (0)