Browse Source

Venvs syntax highlight

pull/135/merge
Jure Šorn 1 month ago
parent
commit
84c0dd29a5
1 changed files with 2 additions and 2 deletions
  1. 4
      index.html

4
index.html

@ -2887,8 +2887,8 @@ px.line(df, x=<span class="hljs-string">'Date'</span>, y=<span class="hljs-strin
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">__init__</span><span class="hljs-params">(self, &lt;ctype/type&gt; &lt;arg_name&gt;)</span>:</span> <span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">__init__</span><span class="hljs-params">(self, &lt;ctype/type&gt; &lt;arg_name&gt;)</span>:</span>
self.&lt;attr_name&gt; = &lt;arg_name&gt; self.&lt;attr_name&gt; = &lt;arg_name&gt;
</code></pre> </code></pre>
<div><h3 id="virtualenvironments">Virtual Environments</h3><p><strong>System for installing libraries directly into project's directory.</strong></p><pre><code class="bash language-bash hljs">$ python3 -m venv NAME <span class="hljs-comment"># Creates virtual environment in current directory.</span>
$ <span class="hljs-built_in">source</span> NAME/bin/activate <span class="hljs-comment"># Activates env. On Windows run `NAME\Scripts\activate`.</span>
<div><h3 id="virtualenvironments">Virtual Environments</h3><p><strong>System for installing libraries directly into project's directory.</strong></p><pre><code class="python hljs">$ python3 -m venv NAME <span class="hljs-comment"># Creates virtual environment in current directory.</span>
$ source NAME/bin/activate <span class="hljs-comment"># Activates env. On Windows run `NAME\Scripts\activate`.</span>
$ pip3 install LIBRARY <span class="hljs-comment"># Installs the library into active environment.</span> $ pip3 install LIBRARY <span class="hljs-comment"># Installs the library into active environment.</span>
$ python3 FILE <span class="hljs-comment"># Runs the script in active environment. Also `./FILE`.</span> $ python3 FILE <span class="hljs-comment"># Runs the script in active environment. Also `./FILE`.</span>
$ deactivate <span class="hljs-comment"># Deactivates the active virtual environment.</span> $ deactivate <span class="hljs-comment"># Deactivates the active virtual environment.</span>

Loading…
Cancel
Save