Skip to content

Commit

Permalink
update webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed May 1, 2024
1 parent 7f0856d commit 5243cca
Show file tree
Hide file tree
Showing 94 changed files with 3,584 additions and 5,931 deletions.
22 changes: 8 additions & 14 deletions content/01-intro-to-jupyterhub.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Intro to JupyterHubs

![](./img/jhub-logo.png){width=200px}


::: {.callout-note icon=false}

## Goals
Expand All @@ -26,7 +27,7 @@ Go to <https://dhub.opensci.live/>. Click "Login to continue". You will be asked

### Image type: Python or R

Next you select your image type. We have two different R images and two Python images. The images have geospatial libraries pre-loaded.
Next you select your image type. We will use the default Py-R - base geospatial image.

### Virtual Machine size

Expand All @@ -36,7 +37,7 @@ You'll see something similar to this that allows you to choose a large virtual m

### Start up

After we select our server type and click on start, JupyterHub will allocate our instance using Amazon Web Services (AWS). This may take several minutes.
After we select our server type and click on start, JupyterHub will allocate our instance in the cloud (on Azure). This may take several minutes.

![Jupyterhub Spawning](./img/spawning.png)

Expand All @@ -47,14 +48,15 @@ When you are in the Jupyter Lab tab (note the Jupyter Logo), you will see a Laun

![Jupyterhub Launcher](./img/jhub-launcher.png)

If you will be using Python today, you can stay in Jupyter Lab. If you are using R today then read the next steps.

* Open RStudio by clicking on the "RStudio" box in the Launcher tab:

![RStudio](./img/rstudio.png)
We will be mainly using RStudio in this course.

## End your session

When you are finished working for the day it is important to log out of the JupyterHub. When you keep a session active it uses up AWS resources (costs money) and keeps a series of virtual machines deployed.
When you are finished working for the day it is important to log out of the Jupyter Hub. When you keep a session active it uses up cloud resources (costs money) and keeps a series of virtual machines deployed.

::: {.callout-caution}

Expand Down Expand Up @@ -90,25 +92,17 @@ Logging out will **NOT** cause any of your work to be lost or deleted. It simply

![Shared folder](./img/shared-folder.png)

In the file panel, you will see a folder called `shared`. These are read-only shared files. There are two main folders:

* `data` The folder with data files
* `2023-Hackbook` The full Git repository with this website
In the file panel, you will see a folder called `shared`. These are read-only shared files.

You will also see `shared-public`. This is a read-write folder for you to put files for everyone to see and use. You can create a team folder here for shared data and files. Note, everyone can see and change these so be careful to communicate with your team so multiple people don't work on the same file at the same time. You can also create folders for each team member and agree not to change other team members files.

You will also see other folders of Python content for the Python users. We will have a separate introduction to Jupyter Notebooks.


## **Python users

You can open a Jupyter Notebook by clicking on the "Python 3" box. In the Launcher tab:

![Jupyterhub Launcher](./img/jhub-launcher.png)

Jupyter notebooks are a very common way to share Python code and tutorials. Because we are focusing on R in this course, we will not use Jupyter notebooks much but we have many Juptyer notebooks that you can experiment with in the `python-tutorials` folder. Get an overview of Jupyter Lab: [Intro to Jupyter Lab](./content/jupyter-notebooks.html) Learn about the [geosciences tools in Python](https://foundations.projectpythia.org)

*Note: Python users can run Python in RStudio and R users can run R in Jupyter Notebooks.*
Jupyter notebooks are a very common way to share Python code and tutorials. Get an overview of Jupyter Lab: [Intro to Jupyter Lab](./content/jupyter-notebooks.html) Learn about the [geosciences tools in Python](https://foundations.projectpythia.org)


## FAQ
Expand Down
65 changes: 0 additions & 65 deletions content/02-quarto.qmd

This file was deleted.

16 changes: 0 additions & 16 deletions content/03-ai.md

This file was deleted.

23 changes: 0 additions & 23 deletions content/04-intro-sdm.md

This file was deleted.

41 changes: 0 additions & 41 deletions content/data.md

This file was deleted.

Binary file modified content/sst.nc
Binary file not shown.
86 changes: 53 additions & 33 deletions docs/cloud-paradigm.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.433">
<meta name="generator" content="quarto-1.4.553">

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

Expand Down Expand Up @@ -62,6 +62,7 @@
"search-more-match-text": "more match in this document",
"search-more-matches-text": "more matches in this document",
"search-clear-button-title": "Clear",
"search-text-placeholder": "",
"search-detached-cancel-button-title": "Cancel",
"search-submit-button-title": "Submit",
"search-label": "Search"
Expand Down Expand Up @@ -118,19 +119,19 @@
</nav>
<nav class="quarto-secondary-nav">
<div class="container-fluid d-flex">
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<i class="bi bi-layout-text-sidebar-reverse"></i>
</button>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item">Cloud Paradigm</li></ol></nav>
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<a class="flex-grow-1" role="button" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
</div>
</nav>
</header>
<!-- content -->
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
<!-- sidebar -->
<nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal sidebar-navigation docked overflow-auto">
<nav id="quarto-sidebar" class="sidebar collapse collapse-horizontal quarto-sidebar-collapse-item sidebar-navigation docked overflow-auto">
<div class="pt-lg-2 mt-2 text-center sidebar-header">
<a href="./index.html" class="sidebar-logo-link">
<img src="https://github.com/nmfs-opensci/assets/blob/main/logo/nmfs-opensci-logo2.png?raw=true" alt="" class="sidebar-logo py-0 d-lg-inline d-none">
Expand Down Expand Up @@ -295,7 +296,7 @@
</ul>
</div>
</nav>
<div id="quarto-sidebar-glass" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar,#quarto-sidebar-glass"></div>
<div id="quarto-sidebar-glass" class="quarto-sidebar-collapse-item" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item"></div>
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">

Expand Down Expand Up @@ -559,6 +560,24 @@ <h1 class="title">Cloud Paradigm</h1>
// clear code selection
e.clearSelection();
});
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp("https:\/\/nmfs-opensci\.github\.io\/EDMW-EarthData-Workshop-2024");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
Expand Down Expand Up @@ -593,7 +612,11 @@ <h1 class="title">Cloud Paradigm</h1>
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
return note.innerHTML;
if (note) {
return note.innerHTML;
} else {
return "";
}
});
}
const xrefs = window.document.querySelectorAll('a.quarto-xref');
Expand All @@ -608,38 +631,28 @@ <h1 class="title">Cloud Paradigm</h1>
}
}
stripColumnClz(note)
const typesetMath = (el) => {
if (window.MathJax) {
// MathJax Typeset
window.MathJax.typeset([el]);
} else if (window.katex) {
// KaTeX Render
var mathElements = el.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
window.katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains('display'),
throwOnError: false,
macros: macros,
fleqn: false
});
}
}
}
}
if (id === null || id.startsWith('sec-')) {
// Special case sections, only their first couple elements
const container = document.createElement("div");
if (note.children && note.children.length > 2) {
for (let i = 0; i < 2; i++) {
container.appendChild(note.children[i].cloneNode(true));
container.appendChild(note.children[0].cloneNode(true));
for (let i = 1; i < note.children.length; i++) {
const child = note.children[i];
if (child.tagName === "P" && child.innerText === "") {
continue;
} else {
container.appendChild(child.cloneNode(true));
break;
}
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(container);
}
typesetMath(container);
return container.innerHTML
} else {
typesetMath(note);
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
return note.innerHTML;
}
} else {
Expand All @@ -648,8 +661,15 @@ <h1 class="title">Cloud Paradigm</h1>
if (anchorLink) {
anchorLink.remove();
}
typesetMath(note);
return note.innerHTML;
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
return note.innerHTML;
}
}
}
for (var i=0; i<xrefs.length; i++) {
Expand Down
Loading

0 comments on commit 5243cca

Please sign in to comment.