Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsing1 committed Dec 28, 2023
1 parent f0f2b47 commit ad02eb4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list
</tr>
</thead>
<tbody class="list">
<tr data-index="0" data-categories="python,TIL" data-listing-date-sort="1703664000000" data-listing-file-modified-sort="1703724307823" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-title-sort="Creating virtual environment with pyenv" data-listing-filename-sort="index.qmd">
<tr data-index="0" data-categories="python,TIL" data-listing-date-sort="1703664000000" data-listing-file-modified-sort="1703730611557" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="2" data-listing-title-sort="Creating virtual environments with pyenv" data-listing-filename-sort="index.qmd">
<td>
<span class="listing-date">Dec 27, 2023</span>
</td>
<td>
<a href="./posts/pyenv/index.html" class="title listing-title">Creating virtual environment with pyenv</a>
<a href="./posts/pyenv/index.html" class="title listing-title">Creating virtual environments with pyenv</a>
</td>
<td>
<span class="listing-author">Thomas Sandmann</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<generator>quarto-1.3.450</generator>
<lastBuildDate>Wed, 27 Dec 2023 08:00:00 GMT</lastBuildDate>
<item>
<title>Creating virtual environment with pyenv</title>
<title>Creating virtual environments with pyenv</title>
<dc:creator>Thomas Sandmann</dc:creator>
<link>https://tomsing1.github.io/blog/posts/pyenv/index.html</link>
<description><![CDATA[
Expand Down
6 changes: 3 additions & 3 deletions docs/posts/pyenv/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="author" content="Thomas Sandmann">
<meta name="dcterms.date" content="2023-12-27">

<title>Thomas Sandmann’s blog - Creating virtual environment with pyenv</title>
<title>Thomas Sandmann’s blog - Creating virtual environments with pyenv</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand Down Expand Up @@ -155,7 +155,7 @@
<header id="title-block-header" class="quarto-title-block default page-columns page-full">
<div class="quarto-title-banner page-columns page-full">
<div class="quarto-title column-body">
<div class="quarto-title-block"><div><h1 class="title">Creating virtual environment with pyenv</h1><button type="button" class="btn code-tools-button" id="quarto-code-tools-source"><i class="bi"></i></button></div></div>
<div class="quarto-title-block"><div><h1 class="title">Creating virtual environments with pyenv</h1><button type="button" class="btn code-tools-button" id="quarto-code-tools-source"><i class="bi"></i></button></div></div>
<div class="quarto-categories">
<div class="quarto-category">python</div>
<div class="quarto-category">TIL</div>
Expand Down Expand Up @@ -691,7 +691,7 @@ <h2 class="anchored" data-anchor-id="using-virtual-environment-in-vs-code">Using
<script src="https://giscus.app/client.js" data-repo="tomsing1/blog" data-repo-id="R_kgDOIZ9LJw" data-category="Announcements" data-category-id="DIC_kwDOIZ9LJ84CTvnC" data-mapping="title" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="top" data-theme="light" data-lang="en" crossorigin="anonymous" async="">
</script><div class="modal fade" id="quarto-embedded-source-code-modal" tabindex="-1" aria-labelledby="quarto-embedded-source-code-modal-label" aria-hidden="true"><div class="modal-dialog modal-dialog-scrollable"><div class="modal-content"><div class="modal-header"><h5 class="modal-title" id="quarto-embedded-source-code-modal-label">Source Code</h5><button class="btn-close" data-bs-dismiss="modal"></button></div><div class="modal-body"><div class="">
<div class="sourceCode" id="cb12" data-shortcodes="false"><pre class="sourceCode markdown code-with-copy"><code class="sourceCode markdown"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="co">---</span></span>
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a><span class="an">title:</span><span class="co"> "Creating virtual environment with pyenv"</span></span>
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a><span class="an">title:</span><span class="co"> "Creating virtual environments with pyenv"</span></span>
<span id="cb12-3"><a href="#cb12-3" aria-hidden="true" tabindex="-1"></a><span class="an">author:</span><span class="co"> "Thomas Sandmann"</span></span>
<span id="cb12-4"><a href="#cb12-4" aria-hidden="true" tabindex="-1"></a><span class="an">date:</span><span class="co"> "2023-12-27"</span></span>
<span id="cb12-5"><a href="#cb12-5" aria-hidden="true" tabindex="-1"></a><span class="an">freeze:</span><span class="co"> true</span></span>
Expand Down
12 changes: 6 additions & 6 deletions docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
"href": "index.html",
"title": "Welcome",
"section": "",
"text": "Date\n\n\nTitle\n\n\nAuthor\n\n\nReading Time\n\n\n\n\n\n\nDec 27, 2023\n\n\nCreating virtual environment with pyenv\n\n\nThomas Sandmann\n\n\n2 min\n\n\n\n\nNov 18, 2023\n\n\nEmbedding R into Quarto documents with quarto-webr\n\n\nThomas Sandmann\n\n\n8 min\n\n\n\n\nSep 17, 2023\n\n\nRetrieving access-controlled data from NCBI’s dbGAP repository\n\n\nThomas Sandmann\n\n\n6 min\n\n\n\n\nSep 13, 2023\n\n\nAdventures with parquet III: single-cell RNA-seq data and comparison with HDF5-backed arrays\n\n\nThomas Sandmann\n\n\n11 min\n\n\n\n\nSep 5, 2023\n\n\nAdventures with parquet II: Implementing the parquetArraySeed S4 class\n\n\nThomas Sandmann\n\n\n11 min\n\n\n\n\nAug 31, 2023\n\n\nAdventures with parquet: Storing & querying gene expression data\n\n\nThomas Sandmann\n\n\n7 min\n\n\n\n\nAug 30, 2023\n\n\nOrganizing sequencing metadata: experimenting with S7\n\n\nThomas Sandmann\n\n\n10 min\n\n\n\n\nAug 28, 2023\n\n\ntourrr: Exploring multi-dimensional data\n\n\nThomas Sandmann\n\n\n6 min\n\n\n\n\nJul 31, 2023\n\n\nCustomizing my Quarto website\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nJul 24, 2023\n\n\nGuess the correlation - a first streamlit app\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nJul 21, 2023\n\n\nGrav - a lightweight content management system\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nJul 21, 2023\n\n\nGreg Wilson: Late Night Thoughts on Listening to Ike Quebec (2018)\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nJun 26, 2023\n\n\nDocumenting data wrangling with the dtrackr R package\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nMay 6, 2023\n\n\nQuerying parquet files with duckdb\n\n\nThomas Sandmann\n\n\n6 min\n\n\n\n\nMar 12, 2023\n\n\nLemur: analyzing multi-condition single-cell data\n\n\nThomas Sandmann\n\n\n14 min\n\n\n\n\n\nFeb 25, 2023\n\n\nSimultaneously inserting records into two tables with Postgres CTEs\n\n\nThomas Sandmann\n\n\n4 min\n\n\n\n\nJan 21, 2023\n\n\nDistributing R packages with a drat repository hosted on AWS S3\n\n\nThomas Sandmann\n\n\n12 min\n\n\n\n\nJan 16, 2023\n\n\nQuantSeq RNAseq analysis (1): configuring the nf-core/rnaseq workflow\n\n\nThomas Sandmann\n\n\n13 min\n\n\n\n\nJan 16, 2023\n\n\nQuantSeq RNAseq analysis (2): Exploring nf-core/rnaseq output\n\n\nThomas Sandmann\n\n\n4 min\n\n\n\n\nJan 16, 2023\n\n\nQuantSeq RNAseq analysis (3): Validating published results (no UMIs)\n\n\nThomas Sandmann\n\n\n14 min\n\n\n\n\nJan 16, 2023\n\n\nQuantSeq RNAseq analysis (4): Validating published results (with UMIs)\n\n\nThomas Sandmann\n\n\n13 min\n\n\n\n\nJan 2, 2023\n\n\nSQL and noSQL approaches to creating & querying databases (using R)\n\n\nThomas Sandmann\n\n\n13 min\n\n\n\n\n\nDec 27, 2022\n\n\nInteractive GSEA results: visualizations with reactable & plotly\n\n\nThomas Sandmann\n\n\n27 min\n\n\n\n\nDec 24, 2022\n\n\nUpSet plots: comparing differential expression across contrasts\n\n\nThomas Sandmann\n\n\n8 min\n\n\n\n\nDec 22, 2022\n\n\nFigure size, layout & tabsets with Quarto\n\n\nThomas Sandmann\n\n\n2 min\n\n\n\n\nDec 12, 2022\n\n\nFull text search in Postgres - the R way\n\n\nThomas Sandmann\n\n\n11 min\n\n\n\n\nDec 11, 2022\n\n\nUpdating R the easy way: using rig command line tool\n\n\nThomas Sandmann\n\n\n2 min\n\n\n\n\nDec 10, 2022\n\n\n2022 normconf: lightning talks\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nDec 8, 2022\n\n\nThe rlist R package\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nNov 17, 2022\n\n\nCreating custom badges for your README\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nNov 15, 2022\n\n\nLearning nextflow: blasting multiple sequences\n\n\nThomas Sandmann\n\n\n8 min\n\n\n\n\nNov 14, 2022\n\n\nPython type hints\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nNov 13, 2022\n\n\nFujita et al: Cell-subtype specific effects of genetic variation in the aging and Alzheimer cortex\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nNov 13, 2022\n\n\nRefreshing & exporting temporary AWS credentials\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nNov 12, 2022\n\n\nInstalling pyroe with conda\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nNov 12, 2022\n\n\nWelcome To My Blog\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\n\n\nNo matching items\n\n\n \n\nThis work is licensed under a Creative Commons Attribution 4.0 International License."
"text": "Date\n\n\nTitle\n\n\nAuthor\n\n\nReading Time\n\n\n\n\n\n\nDec 27, 2023\n\n\nCreating virtual environments with pyenv\n\n\nThomas Sandmann\n\n\n2 min\n\n\n\n\nNov 18, 2023\n\n\nEmbedding R into Quarto documents with quarto-webr\n\n\nThomas Sandmann\n\n\n8 min\n\n\n\n\nSep 17, 2023\n\n\nRetrieving access-controlled data from NCBI’s dbGAP repository\n\n\nThomas Sandmann\n\n\n6 min\n\n\n\n\nSep 13, 2023\n\n\nAdventures with parquet III: single-cell RNA-seq data and comparison with HDF5-backed arrays\n\n\nThomas Sandmann\n\n\n11 min\n\n\n\n\nSep 5, 2023\n\n\nAdventures with parquet II: Implementing the parquetArraySeed S4 class\n\n\nThomas Sandmann\n\n\n11 min\n\n\n\n\nAug 31, 2023\n\n\nAdventures with parquet: Storing & querying gene expression data\n\n\nThomas Sandmann\n\n\n7 min\n\n\n\n\nAug 30, 2023\n\n\nOrganizing sequencing metadata: experimenting with S7\n\n\nThomas Sandmann\n\n\n10 min\n\n\n\n\nAug 28, 2023\n\n\ntourrr: Exploring multi-dimensional data\n\n\nThomas Sandmann\n\n\n6 min\n\n\n\n\nJul 31, 2023\n\n\nCustomizing my Quarto website\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nJul 24, 2023\n\n\nGuess the correlation - a first streamlit app\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nJul 21, 2023\n\n\nGrav - a lightweight content management system\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nJul 21, 2023\n\n\nGreg Wilson: Late Night Thoughts on Listening to Ike Quebec (2018)\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nJun 26, 2023\n\n\nDocumenting data wrangling with the dtrackr R package\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nMay 6, 2023\n\n\nQuerying parquet files with duckdb\n\n\nThomas Sandmann\n\n\n6 min\n\n\n\n\nMar 12, 2023\n\n\nLemur: analyzing multi-condition single-cell data\n\n\nThomas Sandmann\n\n\n14 min\n\n\n\n\n\nFeb 25, 2023\n\n\nSimultaneously inserting records into two tables with Postgres CTEs\n\n\nThomas Sandmann\n\n\n4 min\n\n\n\n\nJan 21, 2023\n\n\nDistributing R packages with a drat repository hosted on AWS S3\n\n\nThomas Sandmann\n\n\n12 min\n\n\n\n\nJan 16, 2023\n\n\nQuantSeq RNAseq analysis (1): configuring the nf-core/rnaseq workflow\n\n\nThomas Sandmann\n\n\n13 min\n\n\n\n\nJan 16, 2023\n\n\nQuantSeq RNAseq analysis (2): Exploring nf-core/rnaseq output\n\n\nThomas Sandmann\n\n\n4 min\n\n\n\n\nJan 16, 2023\n\n\nQuantSeq RNAseq analysis (3): Validating published results (no UMIs)\n\n\nThomas Sandmann\n\n\n14 min\n\n\n\n\nJan 16, 2023\n\n\nQuantSeq RNAseq analysis (4): Validating published results (with UMIs)\n\n\nThomas Sandmann\n\n\n13 min\n\n\n\n\nJan 2, 2023\n\n\nSQL and noSQL approaches to creating & querying databases (using R)\n\n\nThomas Sandmann\n\n\n13 min\n\n\n\n\n\nDec 27, 2022\n\n\nInteractive GSEA results: visualizations with reactable & plotly\n\n\nThomas Sandmann\n\n\n27 min\n\n\n\n\nDec 24, 2022\n\n\nUpSet plots: comparing differential expression across contrasts\n\n\nThomas Sandmann\n\n\n8 min\n\n\n\n\nDec 22, 2022\n\n\nFigure size, layout & tabsets with Quarto\n\n\nThomas Sandmann\n\n\n2 min\n\n\n\n\nDec 12, 2022\n\n\nFull text search in Postgres - the R way\n\n\nThomas Sandmann\n\n\n11 min\n\n\n\n\nDec 11, 2022\n\n\nUpdating R the easy way: using rig command line tool\n\n\nThomas Sandmann\n\n\n2 min\n\n\n\n\nDec 10, 2022\n\n\n2022 normconf: lightning talks\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nDec 8, 2022\n\n\nThe rlist R package\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nNov 17, 2022\n\n\nCreating custom badges for your README\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nNov 15, 2022\n\n\nLearning nextflow: blasting multiple sequences\n\n\nThomas Sandmann\n\n\n8 min\n\n\n\n\nNov 14, 2022\n\n\nPython type hints\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nNov 13, 2022\n\n\nFujita et al: Cell-subtype specific effects of genetic variation in the aging and Alzheimer cortex\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nNov 13, 2022\n\n\nRefreshing & exporting temporary AWS credentials\n\n\nThomas Sandmann\n\n\n3 min\n\n\n\n\nNov 12, 2022\n\n\nInstalling pyroe with conda\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\nNov 12, 2022\n\n\nWelcome To My Blog\n\n\nThomas Sandmann\n\n\n1 min\n\n\n\n\n\n\nNo matching items\n\n\n \n\nThis work is licensed under a Creative Commons Attribution 4.0 International License."
},
{
"objectID": "posts/fujita_2022/index.html",
Expand Down Expand Up @@ -1143,35 +1143,35 @@
{
"objectID": "posts/pyenv/index.html",
"href": "posts/pyenv/index.html",
"title": "Creating virtual environment with pyenv",
"title": "Creating virtual environments with pyenv",
"section": "",
"text": "I am planning to learn more about (web application) development with python. Today I learned how to\nThere is a lot of information about virtual environments in python out there, e.g. in the official python documentation. In addition to managing dependencies for a project, I also foresee the need to manage different versions of python itself.\nTo set up my development environment, I decided to follow the advice of Real python and The hitchhiker’s guide to python and manage multiple python versions and virtual environments with pyenv\nThis work is licensed under a Creative Commons Attribution 4.0 International License."
},
{
"objectID": "posts/pyenv/index.html#installing-pyenv-on-mx-linux",
"href": "posts/pyenv/index.html#installing-pyenv-on-mx-linux",
"title": "Creating virtual environment with pyenv",
"title": "Creating virtual environments with pyenv",
"section": "Installing pyenv on MX Linux",
"text": "Installing pyenv on MX Linux\nI used homebrew to install pyenv on my linux machine running MX 23.1 Libretto.\nbrew update\nbrew install pyenv\nAfterwards, I executed the following code to add three lines to my ~/.bashrc file, as recommended on the pyenv README page.\necho 'export PYENV_ROOT=\"$HOME/.pyenv\"' &gt;&gt; ~/.bashrc\necho 'command -v pyenv &gt;/dev/null || export PATH=\"$PYENV_ROOT/bin:$PATH\"' &gt;&gt; ~/.bashrc\necho 'eval \"$(pyenv init -)\"' &gt;&gt; ~/.bashrc"
},
{
"objectID": "posts/pyenv/index.html#installing-python-with-pyenv",
"href": "posts/pyenv/index.html#installing-python-with-pyenv",
"title": "Creating virtual environment with pyenv",
"title": "Creating virtual environments with pyenv",
"section": "Installing python with pyenv",
"text": "Installing python with pyenv\nNext, I used pyenv to install the latest release version of python, version 3.12.1 (at the time of writing).\n\nTroubleshooting\nI ran into the issue reported here, preventing me from installing python with pyenv (see below). It turns out that brew masks the system’s pkg-config, intefering with the compilation of python.\nI unlinked pkg-config with the following command, and the installation succeeded:\nbrew unlink pkg-config\n\n\nInstalling python version 3.12.1\nFirst, I listed the (many) python versions pynev is aware of:\npyenv install --list\nand then installed the version of my choice:\npyenv install -v 3.12.1\n\n\nSetting the default python version\nFinally, I set my new python installation as the default version:\npyenv global 3.12.1"
},
{
"objectID": "posts/pyenv/index.html#creating-and-using-virtual-environments",
"href": "posts/pyenv/index.html#creating-and-using-virtual-environments",
"title": "Creating virtual environment with pyenv",
"title": "Creating virtual environments with pyenv",
"section": "Creating and using virtual environments",
"text": "Creating and using virtual environments\nTo make using virtual environments with pyenv easier, I installed the pyenv-virtualenv plugin:\nbrew install pyenv-virtualenv\n\nCreating a first virtual environment\nThe pyenv virtualenv command creates a new virtual environment for the specified python version (e.g. 3.12.1).\npyenv virtualenv 3.12.1 rango\nAll virtual environments created in this way are stored in the same location, by default the ~/.pyenv/versions folder:\nls ~/.pyenv/versions/\n\n\nActivating a virtual environment\nThe following command activates my new rango virtual environment:\npyenv activate rango\npython --version # 3.12.1\nand the equivalent command deactivates it:\npyenv deactivate rango"
},
{
"objectID": "posts/pyenv/index.html#using-virtual-environment-in-vs-code",
"href": "posts/pyenv/index.html#using-virtual-environment-in-vs-code",
"title": "Creating virtual environment with pyenv",
"title": "Creating virtual environments with pyenv",
"section": "Using virtual environment in VS Code",
"text": "Using virtual environment in VS Code\nTo use my virtual environment in the VS Code IDE:\n\nOpen VSCode preferences (Ctrl + ,)\nSearch for venv.\nAdd ~/.pyenv to the “Venv Path” text box.\n\nOnce I created a first python file in VS Code, I could choose the python interpretor from the rango virtual environment by clicking on the python version in the bottom right of the IDE window."
}
Expand Down
4 changes: 2 additions & 2 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</url>
<url>
<loc>https://tomsing1.github.io/blog/index.html</loc>
<lastmod>2023-12-28T00:45:37.607Z</lastmod>
<lastmod>2023-12-28T02:30:20.738Z</lastmod>
</url>
<url>
<loc>https://tomsing1.github.io/blog/posts/fujita_2022/index.html</loc>
Expand Down Expand Up @@ -158,6 +158,6 @@
</url>
<url>
<loc>https://tomsing1.github.io/blog/posts/pyenv/index.html</loc>
<lastmod>2023-12-28T00:45:36.080Z</lastmod>
<lastmod>2023-12-28T02:30:19.269Z</lastmod>
</url>
</urlset>
2 changes: 1 addition & 1 deletion posts/pyenv/index.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Creating virtual environment with pyenv"
title: "Creating virtual environments with pyenv"
author: "Thomas Sandmann"
date: "2023-12-27"
freeze: true
Expand Down

0 comments on commit ad02eb4

Please sign in to comment.