Skip to content

Commit 8934291

Browse files
author
Quarto GHA Workflow Runner
committed
Built site for gh-pages
1 parent 81fc7bf commit 8934291

File tree

111 files changed

+7176
-3137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+7176
-3137
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
456d310b
1+
11248b73

bdv/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.4.553">
5+
<meta name="generator" content="quarto-1.4.555">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

blog.html

Lines changed: 90 additions & 20 deletions
Large diffs are not rendered by default.

blog/2022-05-02-juliaset-lambda/2022-05-02-juliaset-lambda.html

Lines changed: 90 additions & 87 deletions
Large diffs are not rendered by default.

blog/2022-06-05-setup-ijava-jupyter-kernel/2022-06-05-setup-ijava-jupyter-kernel.html renamed to blog/2022-06-05-setup-ijava-jupyter-kernel/setup-ijava-jupyter-kernel.html

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.4.553">
5+
<meta name="generator" content="quarto-1.4.555">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

99
<meta name="author" content="Stephan Saalfeld">
1010
<meta name="dcterms.date" content="2022-06-05">
11+
<meta name="description" content="Follow these instructions to setup the IJava jupyter kernel by Spencer Park.">
1112

1213
<title>ImgLib2 and BigDataViewer projects - Setup the IJava jupyter kernel</title>
1314
<style>
@@ -106,7 +107,7 @@
106107

107108
<link rel="stylesheet" href="../../styles.css">
108109
<meta property="og:title" content="ImgLib2 and BigDataViewer projects - Setup the IJava jupyter kernel">
109-
<meta property="og:description" content="">
110+
<meta property="og:description" content="Follow these instructions to setup the IJava jupyter kernel by Spencer Park.">
110111
<meta property="og:site_name" content="ImgLib2 and BigDataViewer projects">
111112
</head>
112113

@@ -208,8 +209,13 @@
208209
<header id="title-block-header" class="quarto-title-block default page-columns page-full">
209210
<div class="quarto-title-banner page-columns page-full">
210211
<div class="quarto-title column-body">
211-
<div class="quarto-title-block"><div><h1 class="title">Setup the IJava jupyter kernel</h1><button type="button" class="btn code-tools-button" id="quarto-code-tools-source" data-quarto-source-url="https://github.com/imglib/imglib2-www/blob/main/blog/2022-06-05-setup-ijava-jupyter-kernel/2022-06-05-setup-ijava-jupyter-kernel.qmd"><i class="bi"></i> Code</button></div></div>
212-
<div class="quarto-categories">
212+
<div class="quarto-title-block"><div><h1 class="title">Setup the IJava jupyter kernel</h1><button type="button" class="btn code-tools-button" id="quarto-code-tools-source" data-quarto-source-url="https://github.com/imglib/imglib2-www/blob/main/blog/2022-06-05-setup-ijava-jupyter-kernel/setup-ijava-jupyter-kernel.md"><i class="bi"></i> Code</button></div></div>
213+
<div>
214+
<div class="description">
215+
Follow these instructions to setup the IJava jupyter kernel by Spencer Park.
216+
</div>
217+
</div>
218+
<div class="quarto-categories">
213219
<div class="quarto-category">jupyter</div>
214220
<div class="quarto-category">ijava</div>
215221
<div class="quarto-category">jshell</div>
@@ -236,6 +242,12 @@
236242
</div>
237243
</div>
238244

245+
<div>
246+
<div class="quarto-title-meta-heading">Modified</div>
247+
<div class="quarto-title-meta-contents">
248+
<p class="date-modified">April 3, 2024</p>
249+
</div>
250+
</div>
239251

240252
</div>
241253

@@ -251,7 +263,7 @@
251263

252264

253265

254-
<p>In this blog, we will show code snippets and examples to make the best use of <a href="https://github.com/imglib/imglib2">ImgLib2</a>, <a href="https://github.com/bigdataviewer/bigdataviewer-core">BigDataViewer</a>, and friends. ImgLib2 is written to be fast and we will run code that needs to be compiled, so we cannot use any of the various interpreted scripting languages like Python, Groovy, or Javascript. Instead, we will use the <a href="https://docs.oracle.com/javase/9/jshell/introduction-jshell.htm#JSHEL-GUID-630F27C8-1195-4989-9F6B-2C51D46F52C8">JShell tool</a> that you can use directly in a terminal or through <a href="https://github.com/SpencerPark/IJava">Spencer Park’s IJava jupyter kernel</a>. You can also follow these tutorials in your own Java project and use your preferred IDE, but Jupyter notebooks are a great teaching tool. Since jupyter is written in Python and most popular with the Python community, let’s follow their ways and first thing create a virtual environment with conda. The lack of version controlled dependency management for Python projects makes it necessary that practically every project must run in a container or virtual environment because the dependencies of different projects almost inevitably collide. Conda is the most popular of several attempts to address this situation. Conda cannot currently be installed from the default Ubuntu repositories, so much about that, but the <a href="https://docs.conda.io/projects/conda/en/latest/user-guide/install/rpm-debian.html">installation instructions</a> are tolerable, there is a PPA. Now let’s create an environment for jupyter:</p>
266+
<p>In this blog, we will show code snippets and examples to make the best use of <a href="https://github.com/imglib/imglib2">ImgLib2</a>, <a href="https://github.com/bigdataviewer/bigdataviewer-core">BigDataViewer</a>, and friends. ImgLib2 is written to be fast and we will run code that needs to be compiled, so we cannot use any of the various interpreted scripting languages like Python, Groovy, or Javascript. Instead, we will use the <a href="https://docs.oracle.com/javase/9/jshell/introduction-jshell.htm#JSHEL-GUID-630F27C8-1195-4989-9F6B-2C51D46F52C8">JShell tool</a> that you can use directly in a terminal or through <a href="https://github.com/saalfeldlab/IJava">Spencer Park’s IJava jupyter kernel</a>. You can also follow these tutorials in your own Java project and use your preferred IDE, but Jupyter notebooks are a great teaching tool. Since jupyter is written in Python and most popular with the Python community, let’s follow their ways and first thing create a virtual environment with conda. The lack of version controlled dependency management for Python projects makes it necessary that practically every project must run in a container or virtual environment because the dependencies of different projects almost inevitably collide. Conda is the most popular of several attempts to address this situation. Conda cannot currently be installed from the default Ubuntu repositories, so much about that, but the <a href="https://docs.conda.io/projects/conda/en/latest/user-guide/install/rpm-debian.html">installation instructions</a> are tolerable, there is a PPA. Now let’s create an environment for jupyter:</p>
255267
<pre><code>conda create -n jshell-jupyter python=3
256268
conda init bash
257269
conda activate jshell-jupyter
@@ -265,9 +277,8 @@
265277
./gradlew publishToMavenLocal
266278

267279
cd ..
268-
git clone https://github.com/hanslovsky/IJava.git
280+
git clone https://github.com/saalfeldlab/IJava.git
269281
cd IJava/
270-
git checkout hanslovsky/gradle-7.4.2
271282
./gradlew installKernel</code></pre>
272283
<p>Now check if the kernel is installed, this should print something like this</p>
273284
<pre><code>jupyter kernelspec list
@@ -277,7 +288,7 @@
277288
python3 /home/saalfeld/anaconda3/envs/jshell-jupyter/share/jupyter/kernels/python3</code></pre>
278289
<p>You can now start the jupyter notebook server</p>
279290
<pre><code>jupyter notebook --kernel=java</code></pre>
280-
<p>And experiment with the examples. <a href="https://github.com/SpencerPark/IJava">Spencer Park’s IJava jupyter kernel</a> makes it very easy to include dependencies. You can include the relevant snippets from a Maven POM into a tagged code block, e.g.</p>
291+
<p>And experiment with the examples. <a href="https://github.com/saalfeldlab/IJava">Spencer Park’s IJava jupyter kernel</a> makes it very easy to include dependencies. You can include the relevant snippets from a Maven POM into a tagged code block, e.g.</p>
281292
<div class="sourceCode" id="cb6"><pre class="sourceCode xml code-with-copy"><code class="sourceCode xml"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>%%loadFromPOM</span>
282293
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a>&lt;<span class="kw">repository</span>&gt;</span>
283294
<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a> &lt;<span class="kw">id</span>&gt;scijava.public&lt;/<span class="kw">id</span>&gt;</span>
@@ -288,6 +299,9 @@
288299
<span id="cb6-8"><a href="#cb6-8" aria-hidden="true" tabindex="-1"></a> &lt;<span class="kw">artifactId</span>&gt;bigdataviewer-vistools&lt;/<span class="kw">artifactId</span>&gt;</span>
289300
<span id="cb6-9"><a href="#cb6-9" aria-hidden="true" tabindex="-1"></a> &lt;<span class="kw">version</span>&gt;1.0.0-beta-29&lt;/<span class="kw">version</span>&gt;</span>
290301
<span id="cb6-10"><a href="#cb6-10" aria-hidden="true" tabindex="-1"></a>&lt;/<span class="kw">dependency</span>&gt;</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
302+
<p>or in gradle short notation</p>
303+
<pre><code>%mavenRepo scijava.public https://maven.scijava.org/content/groups/public
304+
%maven sc.fiji:bigdataviewer-vistools:1.0.0-beta-29</code></pre>
291305
<p>If you prefer to run <a href="https://docs.oracle.com/javase/9/jshell/introduction-jshell.htm#JSHEL-GUID-630F27C8-1195-4989-9F6B-2C51D46F52C8">JShell</a> directly, you can pull in the dependencies from a complete Maven POM with John Pooth’s Maven Jshell plugin</p>
292306
<pre><code>mvn compile com.github.johnpoth:jshell-maven-plugin:1.3:run</code></pre>
293307
<p>Happy JShelling!</p>

blog/2022-08-08-keymaps/2022-08-08-keymaps.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.4.553">
5+
<meta name="generator" content="quarto-1.4.555">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

blog/2022-09-14-how-to-display-imglib2-data/2022-09-14-how-to-display-imglib2-data.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
33

44
<meta charset="utf-8">
5-
<meta name="generator" content="quarto-1.4.553">
5+
<meta name="generator" content="quarto-1.4.555">
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

@@ -576,10 +576,9 @@ <h1>How to display ImgLib2 data in a notebook?</h1>
576576
</div>
577577
</div>
578578
<div class="cell-output cell-output-display">
579-
<div>
580579
<p>affine transformation matrix:</p>
581580

582-
<table data-quarto-postprocess="true" class="table table-sm table-striped small">
581+
<table class="caption-top table table-sm table-striped small" data-quarto-postprocess="true">
583582
<tbody>
584583
<tr class="odd">
585584
<td>1.72</td>
@@ -595,7 +594,6 @@ <h1>How to display ImgLib2 data in a notebook?</h1>
595594
</table>
596595
</div>
597596
</div>
598-
</div>
599597
<p>Affine transformation are probably the most well known and simple real coordinate transformations, but there are many more. Let’s try a <code>ThinplateSplineTransform</code> and format text output with markdown:</p>
600598
<div id="942d0e75" class="cell" data-vscode="{&quot;languageId&quot;:&quot;java&quot;}">
601599
<div class="sourceCode cell-code" id="cb28"><pre class="sourceCode java code-with-copy"><code class="sourceCode java"><span id="cb28-1"><a href="#cb28-1" aria-hidden="true" tabindex="-1"></a><span class="dt">var</span> refImage <span class="op">=</span> <span class="fu">display</span><span class="op">(</span>rai<span class="op">,</span> <span class="st">"image/jpeg"</span><span class="op">);</span></span>
@@ -643,7 +641,7 @@ <h1>How to display ImgLib2 data in a notebook?</h1>
643641
</div>
644642
<div class="cell-output cell-output-display cell-output-markdown">
645643
<p>thinplate spline transformation controls points:</p>
646-
<table class="table table-sm table-striped small">
644+
<table class="caption-top table table-sm table-striped small">
647645
<thead>
648646
<tr class="header">
649647
<th></th>

0 commit comments

Comments
 (0)