<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Fork</id>
	<title>Fork - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Fork"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Fork&amp;action=history"/>
	<updated>2026-06-10T08:32:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Fork&amp;diff=5882&amp;oldid=prev</id>
		<title>Pyadmin: 8 revisions</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Fork&amp;diff=5882&amp;oldid=prev"/>
		<updated>2014-03-28T01:46:43Z</updated>

		<summary type="html">&lt;p&gt;8 revisions&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:46, 28 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pyadmin</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Fork&amp;diff=5881&amp;oldid=prev</id>
		<title>Speleo3 at 12:49, 14 September 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Fork&amp;diff=5881&amp;oldid=prev"/>
		<updated>2011-09-14T12:49:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''spawn''' launches a Python script in a new thread which will run concurrently with the PyMOL interpreter. It can be run in its own namespace (like a Python module, default), a local name space, or in the global namespace.&lt;br /&gt;
&lt;br /&gt;
'''fork''' is an alias for '''spawn'''.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 spawn python-script [, ( local | global | module | main | private )]&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
Not directly available.  Instead, use cmd.do(&amp;quot;spawn ...&amp;quot;).&lt;br /&gt;
 &lt;br /&gt;
===NOTES===&lt;br /&gt;
The default mode for spawn is &amp;quot;module&amp;quot;.&lt;br /&gt;
 &lt;br /&gt;
Due to an idiosyncracy in Pickle, you can not pickle objects directly created at the main level in a script run as &amp;quot;module&amp;quot;, (because the pickled object becomes dependent on that module).  Workaround: delegate construction to an imported module.&lt;br /&gt;
 &lt;br /&gt;
The best way to spawn processes at startup is to use the -l option (see &amp;quot;help launching&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
=== SEE ALSO ===&lt;br /&gt;
&lt;br /&gt;
* [[run]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Fork]]&lt;/div&gt;</summary>
		<author><name>Speleo3</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Fork&amp;diff=5879&amp;oldid=prev</id>
		<title>Vinnyrose at 13:48, 20 June 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Fork&amp;diff=5879&amp;oldid=prev"/>
		<updated>2009-06-20T13:48:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
'''spawn''' launches a Python script in a new thread which will run concurrently with the PyMOL interpreter. It can be run in its own namespace (like a Python module, default), a local name space, or in the global namespace.&lt;br /&gt;
&lt;br /&gt;
===USAGE===&lt;br /&gt;
 run python-script [, ( local | global | module | main | private )]&lt;br /&gt;
&lt;br /&gt;
===PYMOL API===&lt;br /&gt;
Not directly available.  Instead, use cmd.do(&amp;quot;spawn ...&amp;quot;).&lt;br /&gt;
 &lt;br /&gt;
===NOTES===&lt;br /&gt;
The default mode for spawn is &amp;quot;module&amp;quot;.&lt;br /&gt;
 &lt;br /&gt;
Due to an idiosyncracy in Pickle, you can not pickle objects directly created at the main level in a script run as &amp;quot;module&amp;quot;, (because the pickled object becomes dependent on that module).  Workaround: delegate construction to an imported module.&lt;br /&gt;
 &lt;br /&gt;
The best way to spawn processes at startup is to use the -l option (see &amp;quot;help launching&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|Fork]]&lt;/div&gt;</summary>
		<author><name>Vinnyrose</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Fork&amp;diff=5876&amp;oldid=prev</id>
		<title>Tree at 04:45, 23 February 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Fork&amp;diff=5876&amp;oldid=prev"/>
		<updated>2005-02-23T04:45:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:45, 23 February 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot; &gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    (see &amp;quot;help launching&amp;quot;).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    (see &amp;quot;help launching&amp;quot;).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Commands|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;spawn&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Commands|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;fork&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tree</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Fork&amp;diff=5875&amp;oldid=prev</id>
		<title>Tree at 04:44, 23 February 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Fork&amp;diff=5875&amp;oldid=prev"/>
		<updated>2005-02-23T04:44:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:44, 23 February 2005&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot; &gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    (see &amp;quot;help launching&amp;quot;).  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    (see &amp;quot;help launching&amp;quot;).  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[Category:Commands|fork]] &lt;/del&gt;[[Category:Commands|spawn]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Commands|spawn]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tree</name></author>
	</entry>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Fork&amp;diff=5874&amp;oldid=prev</id>
		<title>Tree at 01:57, 22 February 2005</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Fork&amp;diff=5874&amp;oldid=prev"/>
		<updated>2005-02-22T01:57:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===DESCRIPTION===&lt;br /&gt;
 &lt;br /&gt;
   &amp;quot;spawn&amp;quot; launches a Python script in a new thread which will run&lt;br /&gt;
   concurrently with the PyMOL interpreter. It can be run in its own&lt;br /&gt;
   namespace (like a Python module, default), a local name space, or&lt;br /&gt;
   in the global namespace.&lt;br /&gt;
 &lt;br /&gt;
===USAGE===&lt;br /&gt;
    run python-script [, ( local | global | module | main | private )]&lt;br /&gt;
 &lt;br /&gt;
===PYMOL API===&lt;br /&gt;
    Not directly available.  Instead, use cmd.do(&amp;quot;spawn ...&amp;quot;).&lt;br /&gt;
 &lt;br /&gt;
===NOTES===&lt;br /&gt;
    The default mode for spawn is &amp;quot;module&amp;quot;.&lt;br /&gt;
 &lt;br /&gt;
   Due to an idiosyncracy in Pickle, you can not pickle objects&lt;br /&gt;
   directly created at the main level in a script run as &amp;quot;module&amp;quot;,&lt;br /&gt;
   (because the pickled object becomes dependent on that module).&lt;br /&gt;
   Workaround: delegate construction to an imported module.&lt;br /&gt;
 &lt;br /&gt;
   The best way to spawn processes at startup is to use the -l option&lt;br /&gt;
   (see &amp;quot;help launching&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
[[Category:Commands|fork]] [[Category:Commands|spawn]]&lt;/div&gt;</summary>
		<author><name>Tree</name></author>
	</entry>
</feed>