Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anarinsk committed Sep 2, 2024
1 parent 9146bd7 commit c9fb055
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
7 changes: 5 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">

<h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-listing-category category-default"><div class="category" data-category="">All <span class="quarto-category-count">(87)</span></div><div class="category" data-category="Julia">Julia <span class="quarto-category-count">(1)</span></div><div class="category" data-category="Jupyter">Jupyter <span class="quarto-category-count">(1)</span></div><div class="category" data-category="Rstat">Rstat <span class="quarto-category-count">(1)</span></div><div class="category" data-category="VSCode">VSCode <span class="quarto-category-count">(1)</span></div><div class="category" data-category="coding">coding <span class="quarto-category-count">(11)</span></div><div class="category" data-category="computer-tool">computer-tool <span class="quarto-category-count">(31)</span></div><div class="category" data-category="container">container <span class="quarto-category-count">(5)</span></div><div class="category" data-category="dashboard">dashboard <span class="quarto-category-count">(1)</span></div><div class="category" data-category="document-tool">document-tool <span class="quarto-category-count">(7)</span></div><div class="category" data-category="econ-simple">econ-simple <span class="quarto-category-count">(2)</span></div><div class="category" data-category="economics">economics <span class="quarto-category-count">(4)</span></div><div class="category" data-category="git">git <span class="quarto-category-count">(2)</span></div><div class="category" data-category="google-sheet">google-sheet <span class="quarto-category-count">(1)</span></div><div class="category" data-category="linear-algebra">linear-algebra <span class="quarto-category-count">(8)</span></div><div class="category" data-category="machine-learning">machine-learning <span class="quarto-category-count">(11)</span></div><div class="category" data-category="math-of">math-of <span class="quarto-category-count">(6)</span></div><div class="category" data-category="math-simple">math-simple <span class="quarto-category-count">(6)</span></div><div class="category" data-category="os">os <span class="quarto-category-count">(3)</span></div><div class="category" data-category="pc-install">pc-install <span class="quarto-category-count">(3)</span></div><div class="category" data-category="pixi">pixi <span class="quarto-category-count">(1)</span></div><div class="category" data-category="python">python <span class="quarto-category-count">(3)</span></div><div class="category" data-category="quarto">quarto <span class="quarto-category-count">(4)</span></div><div class="category" data-category="r-stat">r-stat <span class="quarto-category-count">(1)</span></div><div class="category" data-category="regression">regression <span class="quarto-category-count">(7)</span></div><div class="category" data-category="statistics">statistics <span class="quarto-category-count">(2)</span></div><div class="category" data-category="stats-simple">stats-simple <span class="quarto-category-count">(5)</span></div><div class="category" data-category="the-books">the-books <span class="quarto-category-count">(4)</span></div><div class="category" data-category="the-lectures">the-lectures <span class="quarto-category-count">(8)</span></div><div class="category" data-category="virtual-env">virtual-env <span class="quarto-category-count">(3)</span></div><div class="category" data-category="walk-through">walk-through <span class="quarto-category-count">(2)</span></div><div class="category" data-category="web">web <span class="quarto-category-count">(1)</span></div></div></div>
<h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-listing-category category-default"><div class="category" data-category="">All <span class="quarto-category-count">(87)</span></div><div class="category" data-category="Julia">Julia <span class="quarto-category-count">(1)</span></div><div class="category" data-category="Jupyter">Jupyter <span class="quarto-category-count">(1)</span></div><div class="category" data-category="Rstat">Rstat <span class="quarto-category-count">(1)</span></div><div class="category" data-category="VSCode">VSCode <span class="quarto-category-count">(1)</span></div><div class="category" data-category="coding">coding <span class="quarto-category-count">(12)</span></div><div class="category" data-category="computer-tool">computer-tool <span class="quarto-category-count">(31)</span></div><div class="category" data-category="container">container <span class="quarto-category-count">(5)</span></div><div class="category" data-category="dashboard">dashboard <span class="quarto-category-count">(1)</span></div><div class="category" data-category="document-tool">document-tool <span class="quarto-category-count">(7)</span></div><div class="category" data-category="econ-simple">econ-simple <span class="quarto-category-count">(2)</span></div><div class="category" data-category="economics">economics <span class="quarto-category-count">(4)</span></div><div class="category" data-category="git">git <span class="quarto-category-count">(2)</span></div><div class="category" data-category="google-sheet">google-sheet <span class="quarto-category-count">(1)</span></div><div class="category" data-category="linear-algebra">linear-algebra <span class="quarto-category-count">(8)</span></div><div class="category" data-category="machine-learning">machine-learning <span class="quarto-category-count">(11)</span></div><div class="category" data-category="math-of">math-of <span class="quarto-category-count">(6)</span></div><div class="category" data-category="math-simple">math-simple <span class="quarto-category-count">(6)</span></div><div class="category" data-category="os">os <span class="quarto-category-count">(3)</span></div><div class="category" data-category="pc-install">pc-install <span class="quarto-category-count">(3)</span></div><div class="category" data-category="pixi">pixi <span class="quarto-category-count">(1)</span></div><div class="category" data-category="python">python <span class="quarto-category-count">(3)</span></div><div class="category" data-category="quarto">quarto <span class="quarto-category-count">(4)</span></div><div class="category" data-category="r-stat">r-stat <span class="quarto-category-count">(1)</span></div><div class="category" data-category="regression">regression <span class="quarto-category-count">(7)</span></div><div class="category" data-category="statistics">statistics <span class="quarto-category-count">(2)</span></div><div class="category" data-category="stats-simple">stats-simple <span class="quarto-category-count">(5)</span></div><div class="category" data-category="the-books">the-books <span class="quarto-category-count">(4)</span></div><div class="category" data-category="the-lectures">the-lectures <span class="quarto-category-count">(8)</span></div><div class="category" data-category="virtual-env">virtual-env <span class="quarto-category-count">(3)</span></div><div class="category" data-category="walk-through">walk-through <span class="quarto-category-count">(2)</span></div><div class="category" data-category="web">web <span class="quarto-category-count">(1)</span></div></div></div>
<!-- main -->
<main class="content column-page-left" id="quarto-document-content">
<!-- Global site tag (gtag.js) - Google Analytics -->
Expand All @@ -218,7 +218,7 @@ <h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-list

<div class="quarto-listing quarto-listing-container-default" id="listing-listing">
<div class="list quarto-listing-default">
<div class="quarto-post image-right" data-index="0" data-categories="computer-tool,python,virtual-env" data-listing-date-sort="1725202800000" data-listing-file-modified-sort="1725272253307" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="4" data-listing-word-count-sort="700">
<div class="quarto-post image-right" data-index="0" data-categories="computer-tool,coding,python,virtual-env" data-listing-date-sort="1725202800000" data-listing-file-modified-sort="1725317174942" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="4" data-listing-word-count-sort="684">
<div class="thumbnail">
<p><a href="./posts/computer-tool/2024-09-02-uv-ultimate-virtual-env.html" class="no-external"></a></p><a href="./posts/computer-tool/2024-09-02-uv-ultimate-virtual-env.html" class="no-external">
<p><img loading="lazy" src="./posts/computer-tool/images/cat-virtual-env.webp" class="thumbnail-image"></p>
Expand All @@ -235,6 +235,9 @@ <h3 class="no-anchor listing-title">
<div class="listing-category" onclick="window.quartoListingCategory('computer-tool'); return false;">
computer-tool
</div>
<div class="listing-category" onclick="window.quartoListingCategory('coding'); return false;">
coding
</div>
<div class="listing-category" onclick="window.quartoListingCategory('python'); return false;">
python
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
<h1 class="title">uv, 궁극의 가상 환경</h1>
<div class="quarto-categories">
<div class="quarto-category">computer-tool</div>
<div class="quarto-category">coding</div>
<div class="quarto-category">python</div>
<div class="quarto-category">virtual-env</div>
</div>
Expand Down Expand Up @@ -244,7 +245,7 @@ <h3 class="anchored" data-anchor-id="사용-조건">사용 조건</h3>
</section>
<section id="here-comes-the-uv" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="here-comes-the-uv">Here Comes the uv!</h2>
<p>uv는 패키지 전체가 Rust로 제작되어서 속도가 무지막지하게 빠르다. conda 같은 사설 패키지 저장소가 아니라 PyPI를 직접 활용해서 때떄로 살짝 편리하다. 예를 들어 한글 이용자라면 matplotlib에서 한글 폰트를 미리 설정해줘야 한다. 아주 번거롭지는 않지만 바쁠 때는 이마저 귀찮을 수 있다. koreanize-matplotlib 패키지는 나눔고딕폰트를 matplotlib의 기본 폰트로 설정해주는 간단한 패키지다. 이 녀석은 conda에는 없고 PyPI에만 있다. uv를 쓰면 이 패키지도 어럽제 않게 치할 수 있다.</p>
<p>Conda가 편리하지만 사설은 사설이다. 예를 들어 한글 이용자라면 matplotlib에서 한글 폰트를 미리 설정해줘야 한다. 아주 번거롭지는 않지만 바쁠 때는 이마저 귀찮을 수 있다. koreanize-matplotlib 패키지는 나눔고딕폰트를 matplotlib의 기본 폰트로 설정해주는 간단한 패키지다. 이 녀석은 conda에는 없고 PyPI에만 있다. uv를 쓰면 이 패키지도 어럽제 않게 치할 수 있다.</p>

<div class="no-row-height column-margin column-container"><div class="">
<p>물론 Pixi나 Rye에서도 PyPI를 통해 패키지를 설치할 수 있다. 아주 번거롭지는 않지만 한번에 떠오르지 않을 때가 있다. 그래서 PyPI를 뼈대로 하는 uv 쪽이 살짝 더 편리하다.</p>
Expand All @@ -254,8 +255,8 @@ <h2 class="anchored" data-anchor-id="here-comes-the-uv">Here Comes the uv!</h2>
<h2 class="anchored" data-anchor-id="사용-사례">사용 사례</h2>
<section id="프로젝트-초기화-및-복원" class="level3">
<h3 class="anchored" data-anchor-id="프로젝트-초기화-및-복원">프로젝트 초기화 및 복원</h3>
<p>보다 상세하고 내용은 <a href="https://docs.astral.sh/uv/">공식 문서</a>를 참고하자. 여기서는 내가 활용하는 간단한 사례를 소개하도록 한다. 이 역시 미래의 나 놈을 위한 것이다. 설치는 아래와 같다. brew 같은 데 포함되면 더 좋을 듯 싶다.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="op">&gt;</span> curl <span class="ex">-LsSf</span> https://astral.sh/uv/install.sh <span class="kw">|</span> <span class="fu">sh</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>보다 상세하고 내용은 <a href="https://docs.astral.sh/uv/">공식 문서</a>를 참고하자. 여기서는 내가 활용하는 간단한 사례를 소개하도록 한다. 이 역시 미래의 나 놈을 위한 것이다. 설치는 고민하지 말고 brew를 이용하자. brew 없이 까는 방법은 링크에 소개되어 있다.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="op">&gt;</span> brew <span class="fu">install</span> uv </span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>이제 프로젝트 폴더를 생성하고 아래와 같이 기초 작업을 해준다.</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="op">&gt;</span> uv <span class="ex">init</span> . <span class="co"># 프로젝트 초기화</span></span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="op">&gt;</span> uv <span class="ex">venv</span> <span class="at">--python</span> 3.12.0 <span class="co"># venv 조건 활성화 및 파이썬 설치 </span></span>
Expand Down
Loading

0 comments on commit c9fb055

Please sign in to comment.