Skip to content

Commit

Permalink
add link to kernel creation
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Jun 1, 2024
1 parent 72de23a commit efccdff
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 2 deletions.
18 changes: 18 additions & 0 deletions docs/posts/tips.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ <h2 id="toc-title">On this page</h2>

<ul class="collapse">
<li><a href="#finding-core-files" id="toc-finding-core-files" class="nav-link active" data-scroll-target="#finding-core-files">Finding core files</a></li>
<li><a href="#list-kernels" id="toc-list-kernels" class="nav-link" data-scroll-target="#list-kernels">List kernels</a></li>
<li><a href="#creating-a-persistent-environment" id="toc-creating-a-persistent-environment" class="nav-link" data-scroll-target="#creating-a-persistent-environment">Creating a persistent environment</a></li>
</ul>
<div class="toc-actions"><ul class="collapse"><li><a href="https://github.com/nmfs-opensci/nmfs-jhub/edit/main/posts/tips.Rmd" class="toc-action"><i class="bi bi-github"></i>Edit this page</a></li><li><a href="https://github.com/nmfs-opensci/nmfs-jhub/issues/new" class="toc-action"><i class="bi empty"></i>Report an issue</a></li><li><a href="https://github.com/nmfs-opensci/nmfs-jhub/blob/main/posts/tips.Rmd" class="toc-action"><i class="bi empty"></i>View source</a></li></ul></div></nav>
</div>
Expand Down Expand Up @@ -211,6 +213,22 @@ <h2 class="anchored" data-anchor-id="finding-core-files">Finding core files</h2>
<p>These are big and storage is expensive.</p>
<pre><code>find / -iname 'core.[0-9]*'</code></pre>
<p>Then delete them.</p>
</section>
<section id="list-kernels" class="level2">
<h2 class="anchored" data-anchor-id="list-kernels">List kernels</h2>
<pre><code>jupyter kernelspec list</code></pre>
<p>Remove</p>
<pre><code>jupyter kernelspec remove &lt;kernel_name&gt;</code></pre>
<p>if the kernel is not in the usual place use something like this to remove</p>
<pre><code>jupyter kernelspec remove -p /home/jovyan/.local/share/jupyter/kernels notebook</code></pre>
<p>Create a kernel</p>
<pre><code># make sure ipykernel is in your env
conda install ipykernel
python -m ipykernel install --user --name mykernel</code></pre>
</section>
<section id="creating-a-persistent-environment" class="level2">
<h2 class="anchored" data-anchor-id="creating-a-persistent-environment">Creating a persistent environment</h2>
<p>https://nmfs-opensci.github.io/nmfs-jhub/posts/JHub-User-Guide.html#using-your-own-conda-environment</p>


</section>
Expand Down
20 changes: 20 additions & 0 deletions docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -844,5 +844,25 @@
"crumbs": [
"Tips"
]
},
{
"objectID": "posts/tips.html#list-kernels",
"href": "posts/tips.html#list-kernels",
"title": "Tips",
"section": "List kernels",
"text": "List kernels\njupyter kernelspec list\nRemove\njupyter kernelspec remove &lt;kernel_name&gt;\nif the kernel is not in the usual place use something like this to remove\njupyter kernelspec remove -p /home/jovyan/.local/share/jupyter/kernels notebook\nCreate a kernel\n# make sure ipykernel is in your env\nconda install ipykernel\npython -m ipykernel install --user --name mykernel",
"crumbs": [
"Tips"
]
},
{
"objectID": "posts/tips.html#creating-a-persistent-environment",
"href": "posts/tips.html#creating-a-persistent-environment",
"title": "Tips",
"section": "Creating a persistent environment",
"text": "Creating a persistent environment\nhttps://nmfs-opensci.github.io/nmfs-jhub/posts/JHub-User-Guide.html#using-your-own-conda-environment",
"crumbs": [
"Tips"
]
}
]
2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
</url>
<url>
<loc>https://nmfs-opensci.github.io/nmfs-jhub/posts/tips.html</loc>
<lastmod>2024-06-01T04:09:56.834Z</lastmod>
<lastmod>2024-06-01T04:25:09.459Z</lastmod>
</url>
</urlset>
30 changes: 29 additions & 1 deletion posts/tips.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,32 @@ These are big and storage is expensive.
find / -iname 'core.[0-9]*'
```

Then delete them.
Then delete them.

## List kernels

```
jupyter kernelspec list
```

Remove

```
jupyter kernelspec remove <kernel_name>
```
if the kernel is not in the usual place use something like this to remove
```
jupyter kernelspec remove -p /home/jovyan/.local/share/jupyter/kernels notebook
```

Create a kernel

```
# make sure ipykernel is in your env
conda install ipykernel
python -m ipykernel install --user --name mykernel
```

## Creating a persistent environment

https://nmfs-opensci.github.io/nmfs-jhub/posts/JHub-User-Guide.html#using-your-own-conda-environment

0 comments on commit efccdff

Please sign in to comment.