Unverified Commit 3614059c authored by Jacob Kaufman's avatar Jacob Kaufman Committed by GitHub
Browse files

Updating Jupyter Docs

parent 6fa45db9
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
CartoCosmos module
==================

.. automodule:: CartoCosmos
   :members:
   :undoc-members:
   :show-inheritance:
+34 −0
Original line number Diff line number Diff line
.. _installation:

Using pip
=========

.. code:: bash

    pip install CartoCosmos

Using conda
===========

1. First start by downloading Anaconda. Go to `Anaconda's download <https://www.anaconda.com/distribution/>`_ page and follow the instructions for your operating system. You can either download Anaconda3, a distribution with data analysis packages preinstalled, or Miniconda, a bare-bones distribution.
2. Follow instructions on how to setup Anaconda `here <https://www.digitalocean.com/community/tutorials/how-to-install-anaconda-on-ubuntu-18-04-quickstart>`_.
3. This is an environment.yml file in the jupyter directory. From this directory, in your terminal, type:

.. code:: bash

    conda env create -f environment.yml

This will create a conda envirnment named leaflet containing the packages needed to run our jupyter notebooks.

4. Now, activate the environment:

.. code:: base

    conda activate leaflet

5. Finally, open our example notebook: 

.. code:: base

    jupyter notebook examples/Example.ipynb.

jupyter/docs/Makefile

0 → 100644
+20 −0
Original line number Diff line number Diff line
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS    ?=
SPHINXBUILD   ?= sphinx-build
SOURCEDIR     = .
BUILDDIR      = _build

# Put it first so that "make" without argument is like "make help".
help:
	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
+11 −0
Original line number Diff line number Diff line
Jupiter
=====

.. jupyter-execute::

    import CartoCosmos as l
    map = l.planetary_maps('jupiter')
    map.display_map()


+11 −0
Original line number Diff line number Diff line
Mars
=====

.. jupyter-execute::

    import CartoCosmos as l
    map = l.planetary_maps('mars')
    map.display_map()


Loading