Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
712ca37
def adding_example_code_tidymess in index.rst
elkogerville May 28, 2026
63e003a
new documentation file about adding tidymess to amuse
elkogerville May 28, 2026
e1cdab5
more docs on adding tidymess to amuse
elkogerville May 29, 2026
cc3f2ff
more sections on tidymess docs
elkogerville May 29, 2026
4eb451a
started section on creating tidymess interface
elkogerville Jun 1, 2026
b84528b
typo fixes and improvments on adding tidymess example code
elkogerville Jun 2, 2026
7759a39
more doc revisions
elkogerville Jun 2, 2026
4367624
expanded configure section of adding tidymess docs
elkogerville Jun 2, 2026
1431624
minor adjustment
elkogerville Jun 2, 2026
af42fdc
cleanup docs
elkogerville Jun 26, 2026
ae1dcee
expanded dep section of docs
elkogerville Jun 26, 2026
6bb5d48
added makefile section to docs
elkogerville Jun 26, 2026
52b136c
update makefile section of docs
elkogerville Oct 1, 2026
d503b24
update docs
elkogerville Nov 5, 2026
7314024
small doc fixes
elkogerville Nov 16, 2026
0e73f00
fix conf.py doc settings
elkogerville Nov 16, 2026
71620cc
fixed missing headers in interactive tutorial
elkogerville Nov 16, 2026
04bde91
fixed missing headers in interactive tutorial
elkogerville Nov 16, 2026
97c39f7
fix broken tables
elkogerville Nov 16, 2026
ce6ab0f
missing ref label
elkogerville Nov 16, 2026
4915f63
fix broken lists and headers
elkogerville Nov 16, 2026
0b83993
fix glossary and formatting
elkogerville Nov 16, 2026
bdc35cd
no-index fixes
elkogerville Nov 16, 2026
05543dd
fix interface spec rst files
elkogerville Nov 16, 2026
6af952e
fix tidymess tutorial doc
elkogerville Nov 16, 2026
8938eb5
fix docstrings
elkogerville Nov 16, 2026
0f91cb9
fixed docstrings
elkogerville Nov 16, 2026
aa7f93f
try getting rtd to build correctly
elkogerville Nov 18, 2026
f95fa5f
fix path to toml
elkogerville Nov 18, 2026
26d3947
try another fix
elkogerville Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ build:
os: ubuntu-22.04
tools:
python: "3.7"
jobs:
post_install:
- python -m pip install --no-deps -e ./src
sphinx:
configuration: doc/conf.py

Expand Down
7 changes: 2 additions & 5 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER = a4
BUILDDIR = build

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
Expand All @@ -31,7 +28,7 @@ help:

amuse_examples:
ln -s ../examples amuse_examples

clean:
-rm -rf $(BUILDDIR)/*
-rm -rf html
Expand All @@ -50,7 +47,7 @@ release: amuse_examples latexpdf
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) html
make -C build/latex tar FMT=pdf
rm -Rf pdf
tar -xvf build/latex/docs-pdf.tar
tar -xvf build/latex/docs-pdf.tar
mv docs-pdf pdf
# cp -R build/plot_directive .

Expand Down
15 changes: 9 additions & 6 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.autosectionlabel',
'sphinx.ext.doctest',
'sphinx.ext.doctest',
'sphinx.ext.todo',
#'sphinx.ext.imgmath',
'sphinx.ext.ifconfig',
#'sphinx.ext.imgmath',
'sphinx.ext.ifconfig',
'sphinx.ext.graphviz',
'sphinx.ext.inheritance_diagram',
'sphinx.ext.doctest',
Expand All @@ -44,6 +44,9 @@
'sphinx_rtd_theme',
]

autosectionlabel_prefix_document = True
autosectionlabel_maxdepth = 2

if not is_running_in_rtd:
extensions.extend([
'matplotlib.sphinxext.plot_directive',
Expand Down Expand Up @@ -203,9 +206,9 @@


# -- Options for LaTeX output --------------------------------------------------

# The paper size ('letter' or 'a4').
#latex_paper_size = 'letter'
latex_elements = {
'papersize': 'a4paper',
}

# The font size ('10pt', '11pt' or '12pt').
#latex_font_size = '10pt'
Expand Down
9 changes: 5 additions & 4 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ Contents:

.. toctree::
:maxdepth: 2

install/index
tutorial/index
interactive_tutorial/index
reference/index
developing/index

.. htmlonly::

.. only:: html

- `Examples <examples/index.html>`_


Indices and tables
==================
Expand Down
4 changes: 2 additions & 2 deletions doc/install/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ properly available.

.. _installing_amuse:

Installing AMUSE
----------------
Installing the AMUSE Package
----------------------------

To get a copy of the most recent release of AMUSE, go to AMUSE_Releases_ and look up the
most recent release. At the bottom of the description, you'll see a link **Source code
Expand Down
2 changes: 1 addition & 1 deletion doc/interactive_tutorial/00-Welcome.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Welcome to ***AMUSE*** \n",
"# Welcome to ***AMUSE*** \n",
"\n",
"You are currently viewing the AMUSE tutorial. This is a [Jupyter Notebook web-application](https://jupyter.org/ \"Jupyter\"). With this application you can create, edit and run Python scripts on your local computer. We will be using it for these AMUSE tutorials, but you can use it for all your interactive explorations of Python and it's many libraries, scripts and applications. This first tutorial is for users unfamiliar with the notebook interface. We will assume some familiarity with Python, though not at very advanced level and even if you are not, you will probably be able to follow most examples and work out the exercises."
]
Expand Down
7 changes: 7 additions & 0 deletions doc/interactive_tutorial/01-Loading_AMUSE.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Loading ***AMUSE***"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 7 additions & 0 deletions doc/interactive_tutorial/02-Quantities_with_units.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Quantities with Units"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 7 additions & 0 deletions doc/interactive_tutorial/03-Generic_units.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Generic Units"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 7 additions & 0 deletions doc/interactive_tutorial/04-Collections_of_Particles.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Collections of Particles"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Attributes and Functions on Particle Collections"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 7 additions & 0 deletions doc/interactive_tutorial/06-Using_a_community_code.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Using a Community Code"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 7 additions & 0 deletions doc/interactive_tutorial/07-Channels.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Channels"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 7 additions & 0 deletions doc/interactive_tutorial/08-Grids.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Grids"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
9 changes: 9 additions & 0 deletions doc/interactive_tutorial/09-Units_and_functions.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Units and Functions"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 7 additions & 0 deletions doc/interactive_tutorial/10-Radiative_transfer.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Radiative Transfer"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
13 changes: 7 additions & 6 deletions doc/interactive_tutorial/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# convert all ipynb to rst files for inclusion into the
# convert all ipynb to rst files for inclusion into the
# amuse documentation
#
# makefile depends on nbconvert script
# makefile depends on nbconvert script
#
# nbconvert from github:
# https://github.com/ipython/nbconvert
# nbconvert depends on
# nbconvert depends on
# ipython, markdown and pygments python modules
# plus pandoc app (pandoc needs haskell platform installed)
#
#
#
#

AMUSE_DIR?=../..
Expand All @@ -20,6 +20,7 @@ NBCONVERT=jupyter nbconvert
PYTHONPATH=$(AMUSE_DIR)/src

PAGES=\
00-Welcome.ipynb\
01-Loading_AMUSE.ipynb\
02-Quantities_with_units.ipynb\
03-Generic_units.ipynb\
Expand All @@ -37,10 +38,10 @@ all: $(RSTPAGES)
clean:
rm -f $(RSTPAGES)
rm -Rf $(RSTFILES)

%.rst:%.ipynb
$(NBCONVERT) --to rst "$<"

%.txt:%.rst
python create_title.py "$<" > "$@"
cat "$<" >> "$@"
Expand Down
26 changes: 13 additions & 13 deletions doc/interactive_tutorial/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,35 @@ and you can start it in that distribution with:
.. code-block:: sh

./amuse-tutorial
For the source distribution you can also run the interactive tutorial
but you will need to install IPython notebook first (`ipythonnb`_).

For the source distribution you can also run the interactive tutorial
but you will need to install IPython notebook first (`ipythonnb`_).
Once you have installed ipython you can run the notebook with:

.. code-block:: sh

export PYTHONPATH=$PWD/src:$PYTHONPATH

cd doc/interactive_tutorial/
ipython notebook --pylab inline

ipython notebook --pylab inline

.. note::
You will need to run the ipython command from the

You will need to run the ipython command from the
interactive tutorial directory.
You also need to have amuse in your python path.

.. note::
The ipython notebook code depends on the `tornado` and the `pyzmq`
modules. You will need to install these before

The ipython notebook code depends on the `tornado` and the `pyzmq`
modules. You will need to install these before
installing the ipython notebook.

.. toctree::
:maxdepth: 1

00-Welcome
01-Loading_AMUSE
02-Quantities_with_units
03-Generic_units
Expand All @@ -50,4 +51,3 @@ Once you have installed ipython you can run the notebook with:


.. _ipythonnb: http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html

Loading
Loading