<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>River Jiang</title>
 <link href="https://riverjiang.com/atom.xml" rel="self"/>
 <link href="https://riverjiang.com/"/>
 <updated>2026-05-15T16:59:47+00:00</updated>
 <id>https://riverjiang.com</id>
 <author>
   <name>River Jiang</name>
 </author>

 
 <entry>
   <title>Resident research day 2026</title>
   <link href="https://riverjiang.com/2026/rrd/"/>
   <updated>2026-05-15T00:00:00+00:00</updated>
   <id>https://riverjiang.com/2026/rrd</id>
   <content type="html">&lt;p&gt;&lt;a href=&quot;https://docs.google.com/presentation/d/1veUUV_8QscOB0yWlgVLpqb5c7wBrLwa-PWZlUxhvuLs/edit?usp=sharing&quot;&gt;Presentation&lt;/a&gt;&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Running jupyter lab locally using uv</title>
   <link href="https://riverjiang.com/2026/run-jupyter/"/>
   <updated>2026-02-20T00:00:00+00:00</updated>
   <id>https://riverjiang.com/2026/run-jupyter</id>
   <content type="html">&lt;p&gt;A bit of a doozy of an invocation to get a jupyter notebook launched locally.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;runs with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;uv&lt;/code&gt; so no need to install jupyter itself and keeps packages sandboxed&lt;/li&gt;
  &lt;li&gt;uses uv’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.venv&lt;/code&gt; in current directory&lt;/li&gt;
  &lt;li&gt;doesn’t install this kernel globally, just installs it locally within the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.venv&lt;/code&gt; directory&lt;/li&gt;
  &lt;li&gt;doesn’t show the native python kernel so the venv kernel is the only one that pops up
(removes need to select kernel called “venv” within jupyter lab after starting it)&lt;/li&gt;
  &lt;li&gt;hosts on 0.0.0.0&lt;/li&gt;
  &lt;li&gt;headless&lt;/li&gt;
  &lt;li&gt;doesn’t require token&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;uv run &lt;span class=&quot;nt&quot;&gt;--with&lt;/span&gt; ipykernel python &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; ipykernel &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--prefix&lt;/span&gt; .venv &lt;span class=&quot;nt&quot;&gt;--name&lt;/span&gt; venv &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;JUPYTER_DATA_DIR&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;.venv/share/jupyter uv run &lt;span class=&quot;nt&quot;&gt;--with&lt;/span&gt; jupyter jupyter lab &lt;span class=&quot;nt&quot;&gt;--ip&lt;/span&gt; 0.0.0.0 &lt;span class=&quot;nt&quot;&gt;--no-browser&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--ServerApp&lt;/span&gt;.token&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;&apos;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--KernelSpecManager&lt;/span&gt;.ensure_native_kernel&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;False
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I save this as an abbreviation in my &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fish&lt;/code&gt; config in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.config/fish/config.fish&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;abbr &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; jupyter &lt;span class=&quot;s2&quot;&gt;&quot;uv run --with ipykernel python -m ipykernel install --prefix .venv --name venv &amp;amp;&amp;amp; JUPYTER_DATA_DIR=.venv/share/jupyter uv run --with jupyter jupyter lab --ip 0.0.0.0 --no-browser --ServerApp.token=&apos;&apos; --KernelSpecManager.ensure_native_kernel=False&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</content>
 </entry>
 

</feed>
