<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lam Hoang</title>
    <description>The latest articles on DEV Community by Lam Hoang (@lamhoanghg).</description>
    <link>https://dev.to/lamhoanghg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F938296%2Fe1c3880b-bae2-49ed-867d-de891696481c.png</url>
      <title>DEV Community: Lam Hoang</title>
      <link>https://dev.to/lamhoanghg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lamhoanghg"/>
    <language>en</language>
    <item>
      <title>Store in Svelte</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Tue, 18 Oct 2022 15:44:14 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/store-in-svelte-om</link>
      <guid>https://dev.to/lamhoanghg/store-in-svelte-om</guid>
      <description>&lt;p&gt;A store is simply an object with a subscribe method that allows interested parties to be notified whenever the store value changes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
  let countValue;
  const unsubscribe = count.subscribe(value =&amp;gt; {
    count_value = value;
  });
  onDestroy(unsubscribe);
&amp;lt;/script&amp;gt;

&amp;lt;h1&amp;gt;The count is {count_value}&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Update the stored value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
  function increment() {
    count.update(n =&amp;gt; n + 1)
  }
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set a value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
  function reset() {
    count.set(0);
  }
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Usage&lt;br&gt;
Use auto-subscription to get rid of subscribe and onDestroy methods:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
  import { storeValue } from './AnotherComponent'
  // ...other imports come after
&amp;lt;/script&amp;gt;

&amp;lt;h1&amp;gt;The count is {$storeValue}&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Readable store&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
  export const time = readable(new Date(), function start(set) {
    // Implementation
    set()

    return function stop() {
      // Implementation
    }
  })
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Writable store&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
  import { writable } from 'svelte/store';

  const count = writable(0, () =&amp;gt; {
    console.log('got a subscriber');
    return () =&amp;gt; console.log('no more subscribers');
  });
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Derived store&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;…from another store.

&amp;lt;script&amp;gt;
  import { derived } from 'svelte/store';

  const delayed = derived(time, ($a, set) =&amp;gt; {
    setTimeout(() =&amp;gt; set($a), 1000);
  }, 'one moment...');

  // or (read-only derived):

  const elapsed = derived(time, $time =&amp;gt;
    Math.round(($time - start) / 1000)
  );

&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Custom store&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// store.js

import { writable } from 'svelte/store';
function createCount() {
  const { subscribe, set, update } = writable(0);

  return {
    subscribe,
    increment: () =&amp;gt; update(n =&amp;gt; n + 1),
    decrement: () =&amp;gt; update(n =&amp;gt; n - 1),
    reset: () =&amp;gt; set(0)
  };
}
export const count = createCount();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script&amp;gt;
  import { count } from './store.js';
&amp;lt;/script&amp;gt;

&amp;lt;h1&amp;gt;The count is {$count}&amp;lt;/h1&amp;gt;

&amp;lt;button on:click={count.increment}&amp;gt;+&amp;lt;/button&amp;gt;
&amp;lt;button on:click={count.decrement}&amp;gt;-&amp;lt;/button&amp;gt;
&amp;lt;button on:click={count.reset}&amp;gt;reset&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>svelte</category>
    </item>
    <item>
      <title>Handle Events in Svelte</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Tue, 18 Oct 2022 15:39:45 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/handle-events-in-svelte-25ah</link>
      <guid>https://dev.to/lamhoanghg/handle-events-in-svelte-25ah</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button on:click={handleClick}&amp;gt;
  Press me
&amp;lt;/button&amp;gt;

&amp;lt;button on:click={() =&amp;gt; console.log('I was pressed')}&amp;gt;
  Press me
&amp;lt;/button&amp;gt;

&amp;lt;button on:click|once={handleClick}&amp;gt;
  Press me
&amp;lt;/button&amp;gt;

&amp;lt;button on:submit|preventDefault={handleClick}&amp;gt;
  Press me
&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://simplecheatsheet.com/tag/svelte-cheat-sheet/#svelte-forwarding-events-cheat-sheet"&gt;Svelte Cheat Sheet&lt;/a&gt;&lt;/p&gt;

</description>
      <category>svelte</category>
    </item>
    <item>
      <title>Forwarding Events in Svelte</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Tue, 18 Oct 2022 15:36:00 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/forwarding-events-in-svelte-24lp</link>
      <guid>https://dev.to/lamhoanghg/forwarding-events-in-svelte-24lp</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Widget.svelte
&amp;lt;script&amp;gt;
  import { createEventDispatcher } from "svelte";
  const dispatch = createEventDispatcher();
&amp;lt;/script&amp;gt;
&amp;lt;button on:click={() =&amp;gt; dispatch('message', { text: 'Hello!' })} /&amp;gt;
&amp;lt;button on:click&amp;gt;Press me&amp;lt;/button&amp;gt;

// App.svelte
&amp;lt;script&amp;gt;
import Widget from '.Widget.svelte'
&amp;lt;/script&amp;gt;

&amp;lt;Widget 
  on:click={() =&amp;gt; alert('I was clicked')} 
  on:message={e =&amp;gt; alert(e.detail.text)}&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>svelte</category>
    </item>
    <item>
      <title>Dplyr Make New Variables</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Tue, 18 Oct 2022 15:18:17 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/dplyr-make-new-variables-46l0</link>
      <guid>https://dev.to/lamhoanghg/dplyr-make-new-variables-46l0</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Compute and append one or more new columns: &lt;code&gt;dplyr::mutate(iris, sepal = Sepal.Length + Sepal. Width)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Apply window function to each column: &lt;code&gt;dplyr::mutate_each(iris, funs(min_rank))&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Compute one or more new columns. Drop original columns: &lt;code&gt;dplyr::transmute(iris, sepal = Sepal.Length + Sepal. Width)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Copy with values shifed by 1: &lt;code&gt;dplyr::lead&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Copy with values lagged by 1: &lt;code&gt;dplyr::lag&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Ranks with no gaps: &lt;code&gt;dplyr::dense_rank&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Ranks. Ties get min rank: &lt;code&gt;dplyr::min_rank&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Ranks rescaled to [0, 1]: &lt;code&gt;dplyr::percent_rank&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Ranks. Ties got to first value: &lt;code&gt;dplyr::row_number&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Bin vector into n buckets: &lt;code&gt;dplyr::ntile&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Are values between a and b?: &lt;code&gt;dplyr::between&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cumulative distribution: &lt;code&gt;dplyr::cume_dist&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cumulative all: &lt;code&gt;dplyr::cumall&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cumulative any: &lt;code&gt;dplyr::cumany&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cumulative mean: &lt;code&gt;dplyr::cummean&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cumulative sum: &lt;code&gt;cumsum&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cumulative max: &lt;code&gt;cummax&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cumulative min: &lt;code&gt;cummin&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cumulative prod: &lt;code&gt;cumprod&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Element-wise max: &lt;code&gt;pmax&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Element-wise min: &lt;code&gt;pmin&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://simplecheatsheet.com/tag/dplyr-cheat-sheet/"&gt;Dplyr Cheat Sheet&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>dplyr</category>
    </item>
    <item>
      <title>Creates an array of elements split into groups the length of size.</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Tue, 18 Oct 2022 02:47:41 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/creates-an-array-of-elements-split-into-groups-the-length-of-size-1a0h</link>
      <guid>https://dev.to/lamhoanghg/creates-an-array-of-elements-split-into-groups-the-length-of-size-1a0h</guid>
      <description>&lt;p&gt;Creates an array of elements split into groups the length of size. If array can't be split evenly, the final chunk will be the remaining elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Arguments&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;array (Array)&lt;/code&gt;: The array to process.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;[size=1] (number)&lt;/code&gt;: The length of each chunk&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Returns&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;(Array)&lt;/code&gt;: Returns the new array of chunks.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_.chunk(['a', 'b', 'c', 'd'], 2);
// =&amp;gt; [['a', 'b'], ['c', 'd']]

_.chunk(['a', 'b', 'c', 'd'], 3);
// =&amp;gt; [['a', 'b', 'c'], ['d']]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://simplecheatsheet.com/tag/lodash-cheat-sheet/"&gt;Lodash Cheat Sheet&lt;/a&gt; by &lt;a href="https://simplecheatsheet.com"&gt;simple cheat sheet&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Lodash Debounce</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Thu, 13 Oct 2022 08:03:12 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/lodash-debounce-24kl</link>
      <guid>https://dev.to/lamhoanghg/lodash-debounce-24kl</guid>
      <description>&lt;p&gt;The _.debounce() method of Function in lodash is used to create a debounced function that delays the given function until after the stated wait time in milliseconds has passed since the last time this debounced function was called. The debounced function has a cancel method that can be used to cancel the function calls that are delayed and a flush method that is used to immediately call the delayed function. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;_.debounce( func, wait, options )&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Parameters:&lt;/strong&gt; This method accepts three parameters as mentioned above and described below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;func&lt;/strong&gt;: It is the function that has to be debounced.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;wait&lt;/strong&gt;: It is the number of milliseconds for which the calls are to be delayed. It is an optional parameter. The default value is 0.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;options&lt;/strong&gt;: It is the options object that can be used for changing the behaviour of the method. It is an optional parameter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The options object has the following parameters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;leading&lt;/strong&gt;: It defines the calling on the leading edge of the timeout. It is an optional parameter. The default value is false.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;maxWait&lt;/strong&gt;: It is the maximum number of time for which the func is allowed to be delayed before it is called. It is an optional parameter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;trailing&lt;/strong&gt;: It defines the calling on the trailing edge of the timeout. It is an optional parameter. The default value is true.&lt;/li&gt;
&lt;/ul&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


</description>
      <category>lodash</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Conda Removing Packages or Environments</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Mon, 10 Oct 2022 16:53:47 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/conda-removing-packages-or-environments-4n75</link>
      <guid>https://dev.to/lamhoanghg/conda-removing-packages-or-environments-4n75</guid>
      <description>&lt;p&gt;&lt;code&gt;conda remove --name bunnies beautiful-soup&lt;/code&gt;   Remove one package from any named environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda remove beautiful-soup&lt;/code&gt;  Remove one package from the active environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda remove --name bunnies beautiful-soup astroid&lt;/code&gt;   Remove multiple packages from any environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda remove --name snakes --all&lt;/code&gt; Remove an environment (remove all packages)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda uninstall packagename&lt;/code&gt; Remove one package. Alias for conda remove&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda clean --all&lt;/code&gt; Delete unused packages and caches&lt;/p&gt;

&lt;p&gt;&lt;a href="https://simplecheatsheet.com/tag/conda-cheat-sheet/"&gt;Get full Conda Cheat Sheet&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Conda Managing Packages, Including Python</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Mon, 10 Oct 2022 16:53:10 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/conda-managing-packages-including-python-1c3</link>
      <guid>https://dev.to/lamhoanghg/conda-managing-packages-including-python-1c3</guid>
      <description>&lt;p&gt;&lt;code&gt;conda list&lt;/code&gt;   View list of packages and versions installed in active environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda list | grep pandas&lt;/code&gt; Search package in the list&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda list --show-channel-urls&lt;/code&gt; List all installed packages along its channels&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda list --export &amp;gt; env.txt&lt;/code&gt; Save to a Requirements file all packages in an environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda list &amp;gt; env.txt&lt;/code&gt; Save a package list an a file&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda search beautiful-soup&lt;/code&gt;  Search for a package to see if it is available to conda install&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda search -c conda-forge black&lt;/code&gt; Search Alternate Channels specify different channels as well, with the use of the -c flag&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda search conda-forge::black&lt;/code&gt; Search Alternate Channels&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install -n bunnies beautiful-soup&lt;/code&gt;  Install a new package NOTE: If you do not include the name of the environment, it will install in the current active environment.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda update beautiful-soup&lt;/code&gt;  Update a package in the current environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda search --override-channels -c pandas bottleneck&lt;/code&gt;    Search for a package in a specific location (the pandas channel on Anaconda.org)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install -c conda-forge black&lt;/code&gt;  Installing black from the conda-forge channel&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install -c pandas bottleneck&lt;/code&gt;   Install a package from a specific channel&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install scipy --channel conda-forge --channel bioconda&lt;/code&gt; Specifying multiple channels when installing a package&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda search --override-channels -c defaults beautiful-soup&lt;/code&gt;  Search for a package to see if it is available from the Anaconda repository&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install iopro accelerate&lt;/code&gt;   Install commercial Continuum packages&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install black isort flake8&lt;/code&gt; install python linter&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install conda-build&lt;/code&gt; Install conda-build&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install matplotlib=1.4.3&lt;/code&gt; Install a certain package version&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install m2-patch posix&lt;/code&gt; Windows only&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda install --use-local click&lt;/code&gt;  &lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda skeleton pypi pyinstrument&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda build pyinstrument&lt;/code&gt; Build a package from a Python Package Index (PyPi) Package&lt;/p&gt;

&lt;p&gt;&lt;a href="https://simplecheatsheet.com/tag/conda-cheat-sheet/"&gt;Conda Cheat Sheet&lt;/a&gt; by &lt;a href="https://simplecheatsheet.com"&gt;simplecheatsheet.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>conda</category>
    </item>
    <item>
      <title>Managing .condarc Configuration</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Mon, 10 Oct 2022 16:52:02 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/managing-condarc-configuration-4216</link>
      <guid>https://dev.to/lamhoanghg/managing-condarc-configuration-4216</guid>
      <description>&lt;p&gt;&lt;code&gt;conda config --get&lt;/code&gt;   Get all keys and values from my .condarc file&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --get channels&lt;/code&gt;  Get value of the key channels from .condarc file&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --show channels&lt;/code&gt; Knowing the active channels&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --add channels pandas&lt;/code&gt;   Add a new value to channels so conda looks for packages in this location&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --add channels defaults&lt;/code&gt; Adding a default channel&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --add channels conda-forge&lt;/code&gt; Adding a channel&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --add channels bioconda&lt;/code&gt; Adding a channel&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --set anaconda_upload yes&lt;/code&gt; Enable uploading to Anaconda Cloud&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --set anaconda_upload no&lt;/code&gt; Disable uploading to Anaconda Cloud&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda config --set auto_activate_base false&lt;/code&gt; Deactivating the activation of the base environment in Python&lt;/p&gt;

&lt;p&gt;&lt;a href="https://simplecheatsheet.com/tag/conda-cheat-sheet/"&gt;Conda Cheat Sheet&lt;/a&gt; by &lt;a href="https://simplecheatsheet.com"&gt;SimpleCheatSheet.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>conda</category>
    </item>
    <item>
      <title>Conda Managing Python</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Mon, 10 Oct 2022 16:51:01 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/conda-managing-python-2k8h</link>
      <guid>https://dev.to/lamhoanghg/conda-managing-python-2k8h</guid>
      <description>&lt;p&gt;&lt;code&gt;conda search --full-name python&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda search -f python&lt;/code&gt;   Check versions of Python available to install&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda search ipython=8.3.0 --info | sed '/file name/,/timestamp/d'&lt;/code&gt; For quick checking package dependencies (for example, for all python versions)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda create -n snakes python=3.4&lt;/code&gt;    Install different version of Python in new environment&lt;/p&gt;

&lt;p&gt;&lt;a href="https://simplecheatsheet.com/tag/conda-cheat-sheet/"&gt;Conda Cheat Sheet&lt;/a&gt; by &lt;a href="https://simplecheatsheet.com"&gt;cheat sheet manager&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Conda Managing Environments</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Mon, 10 Oct 2022 16:49:58 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/conda-managing-environments-p7</link>
      <guid>https://dev.to/lamhoanghg/conda-managing-environments-p7</guid>
      <description>&lt;p&gt;&lt;code&gt;conda info --envs&lt;/code&gt; Verify environment you are right now&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda info -e&lt;/code&gt;    Get a list of all my environmentsActive environment shown with *&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda create --name snowflakes biopython&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda create -n snowflakes biopython&lt;/code&gt; Create an environment and install program(s)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda activate snowflakes&lt;/code&gt;    Activate the new environment to use it&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda deactivate&lt;/code&gt; Deactivate the environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda create -n bunnies python=3.9 astroid&lt;/code&gt;   Create a new environment, specify Python version&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda create -n foo instrain awscli samtools python=3.8&lt;/code&gt; Create a new environment with a set of packages and specific version of Python&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda create -n flowers --clone snowflakes&lt;/code&gt;   Make exact copy of an environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda remove -n flowers --all&lt;/code&gt;    Delete an environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda env list&lt;/code&gt; List all envs&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda env export &amp;gt; env.yml&lt;/code&gt;   Save the current Package-specific environment to a file&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda env export --file env.yml&lt;/code&gt; Saving an entire environment to a file&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda env export --from-history &amp;gt; env.yml&lt;/code&gt;    Save the current Cross-platform compitible environment to a file&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda env create -f env.yml&lt;/code&gt;  Load the Package-specific environment from a file&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda env update -n coolbase --file environment.yml&lt;/code&gt;  install and/or update packages from environment.yml&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda env remove --name bamqc&lt;/code&gt; Remove Virtual Environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;CONDA_SUBDIR=osx-arm64 conda create -n test_env --dry-run python=3.8 llvm-openmp cython numpy pip "matplotlib-base&amp;gt;=3.0.3" "protobuf &amp;gt;=3.11.2,&amp;lt;4.0.0" "scipy &amp;gt;=1.3.2,&amp;lt;2.0.0"&lt;/code&gt; Conda dry run environment on a specific platform&lt;/p&gt;

&lt;p&gt;&lt;code&gt;for py in 3.8 3.9 3.10; do echo -e "\n*****  python $py  *****"; conda create --dry-run --quiet -n __test__ python=$py pandas=1.4.2; done&lt;/code&gt;    Conda dry run creating an environment and installing packages (pandas 1.4.2) for different python versions&lt;/p&gt;

&lt;p&gt;&lt;a href="https://simplecheatsheet.com/tag/conda-cheat-sheet/"&gt;Conda Cheat Sheet&lt;/a&gt; by &lt;a href="https://simplecheatsheet.com"&gt;Simple Cheat Sheet&lt;/a&gt;&lt;/p&gt;

</description>
      <category>conda</category>
      <category>package</category>
    </item>
    <item>
      <title>Managing Conda, Miniconda, and Anaconda</title>
      <dc:creator>Lam Hoang</dc:creator>
      <pubDate>Mon, 10 Oct 2022 16:40:59 +0000</pubDate>
      <link>https://dev.to/lamhoanghg/managing-conda-miniconda-and-anaconda-13m6</link>
      <guid>https://dev.to/lamhoanghg/managing-conda-miniconda-and-anaconda-13m6</guid>
      <description>&lt;p&gt;&lt;code&gt;conda --version&lt;/code&gt; Check conda version&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda info&lt;/code&gt; Verify conda is installed, check version&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda update conda&lt;/code&gt; Update conda package and environment manager&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda update anaconda&lt;/code&gt; Update the anaconda meta package&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda update --all&lt;/code&gt; Update all packages in the environment&lt;/p&gt;

&lt;p&gt;&lt;code&gt;conda update --all -y&lt;/code&gt; Update all packages in the environment&lt;/p&gt;

&lt;p&gt;Visit &lt;a href="https://simplecheatsheet.com/tag/conda-cheat-sheet/"&gt;conda cheat sheet&lt;/a&gt; to get full&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
