Skip to content

Commit

Permalink
update config and sample notebook 2
Browse files Browse the repository at this point in the history
  • Loading branch information
janash committed Nov 26, 2024
1 parent 88c8178 commit 1ba0560
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 28 deletions.
24 changes: 9 additions & 15 deletions book/_config.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,40 @@
# Book settings
# Learn more at https://jupyterbook.org/customize/config.html

title: MolSSI Jupyter Book
title: Introduction to Julia # Name of the book
author: The Molecular Sciences Software Institute
copyright: "2024"

# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: force

# Define the name of the latex output file for PDF builds
latex:
latex_documents:
targetname: book.tex

# Add a bibtex file so that we can create citations
bibtex_bibfiles:
- references.bib

# Information about where the book exists on the web
repository:
url: https://github.com/MolSSI-Education/WORKSHOP_NAME # Online location of your book
path_to_book: book/ # Optional path to your book, relative to the repository root
branch: main # Which branch of the repository should be used when creating links (optional)
url: https://github.com/MolSSI-Education/julia-intro
path_to_book: book/
branch: main

# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
html:
use_issues_button: true
use_repository_button: true
google_analytics_id: G-FHKVGE8HKZ
extra_css:
- https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css
- https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css

extra_css:
- https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css
- https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css

sphinx:
config:
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js

html_theme_options:
logo:
image_light: images/molssi_main_logo.png
image_dark: images/molssi_main_logo_inverted_white.png

52 changes: 39 additions & 13 deletions book/sample2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,48 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [
{
"ename": "",
"evalue": "",
"output_type": "error",
"traceback": [
"\u001b[1;31mFailed to start the Kernel. \n",
"\u001b[1;31mUnable to start Kernel 'Julia 1.10.4' due to a timeout waiting for the ports to get used. \n",
"\u001b[1;31mView Jupyter <a href='command:jupyter.viewOutput'>log</a> for further details."
"name": "stdout",
"output_type": "stream",
"text": [
"Hello, World!"
]
}
],
"source": [
"print(\"Hello, World!\")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.011111111111111112"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"κ = 2\n",
"L = 3\n",
"cₚ = 4\n",
"ρ = 5\n",
"t = 1\n",
"\n",
"α = κ / (cₚ * ρ)\n",
"Fo = α * t / (L^2)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -67,13 +91,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "jupyter-book-2024",
"language": "python",
"name": "python3"
"display_name": "Julia 1.11.1",
"language": "julia",
"name": "julia-1.11"
},
"language_info": {
"name": "python",
"version": "3.12.7"
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.11.1"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1ba0560

Please sign in to comment.