From 898370ef2bf7e59b1feeaeb55411173afb8a0f11 Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Wed, 6 Apr 2016 17:30:56 -0700 Subject: [PATCH] Add a configuration overview --- docs/source/config_overview.rst | 80 ++++++++++++++++++++++----------- docs/source/index.rst | 2 +- 2 files changed, 54 insertions(+), 28 deletions(-) diff --git a/docs/source/config_overview.rst b/docs/source/config_overview.rst index 951119f9d..2d42be8e0 100644 --- a/docs/source/config_overview.rst +++ b/docs/source/config_overview.rst @@ -3,46 +3,72 @@ Configuration Overview ====================== -While Jupyter Notebook installs with default configuration settings, Jupyter -Notebook provides a rich array of options that may be configured to suit -your workflow. Let's explore four areas of configuration: +Beyond the default configuration settings, you can configure a rich array of +options to suit your workflow. Here are areas that are commonly configured +when using Jupyter Notebook: -- Jupyter's Common Configuration system -- Notebook server -- Notebook front-end client -- Notebook extensions + - :ref:`Jupyter's common configuration system ` + - :ref:`Notebook server ` + - :ref:`Notebook front-end client ` + - :ref:`Notebook extensions ` +Let's look at highlights of each area. -:ref:`Security in Jupyter notebooks ` is a topic worthy of -serious consideration. Since security policies will vary from organization to -organization, we encourage you to consult with your security team on settings -that would be best for your use cases. Our documentation offers some -responsible security practices, and we recommend that you become familiar -with the practices. +.. _configure_common: Jupyter's Common Configuration system ------------------------------------- -- Configuring a Jupyter application -- Configuring a language kernel -- Python configuration files -- Command line arguments -- traitlets low-level architecture for configuration +Jupyter applications, from the Notebook to JupyterHub to nbgrader, share a +common configuration system. The process for creating a configuration file +and editing settings is similar for all the Jupyter applications. + + - `Configuring a Jupyter application `_ + - `Using Python to set up the configuration files `_ + - `Configuring a language kernel `_ + - `traitlets `_ provide a low-level + architecture for configuration. + +.. _configure_nbserver: Notebook server --------------- +The Notebook server runs the language kernel and communicates with the +front-end Notebook client (i.e. the familiar notebook interface). -- Configure the Notebook server -- Running a Notebook server -- Related: Configuring a language kernel + - Configuring the Notebook server + + To create a ``jupyter_notebook_config.py`` file in the ``.jupyter`` + directory, with all the defaults commented out, use the following + command:: + + $ jupyter notebook --generate-config + + :ref:`Command line arguments for configuation ` settings are + documented in the configuration file and the user documentation. + + - :ref:`Running a Notebook server ` + - Related: `Configuring a language kernel `_ + to run in the Notebook server enables your server to run other languages, like R or Julia. + +.. _configure_nbclient: Notebook front-end client ------------------------- -- How front-end configuration works - * Example: Changing the notebook's default indentation setting - * Example: Restoring the notebook's default indentation setting -- Persisting configuration settings +- :ref:`How front-end configuration works ` + * :ref:`Example: Changing the notebook's default indentation setting ` + * :ref:`Example: Restoring the notebook's default indentation setting ` +- :ref:`Persisting configuration settings ` + +.. _configure_nbextensions: Notebook extensions ------------------- -- Distributing Jupyter Extensions as Python Packages -- Extending the Notebook +- `Distributing Jupyter Extensions as Python Packages `_ +- `Extending the Notebook `_ + + +:ref:`Security in Jupyter notebooks: ` Since security +policies vary from organization to organization, we encourage you to +consult with your security team on settings that would be best for your use +cases. Our documentation offers some responsible security practices, and we +recommend becoming familiar with the practices. diff --git a/docs/source/index.rst b/docs/source/index.rst index 376e02e19..33c44d2ce 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -39,7 +39,7 @@ The Jupyter notebook frontend_config examples/Notebook/Distributing Jupyter Extensions as Python Packages extending/index.rst - + .. toctree:: :maxdepth: 1 :caption: Contributor Documentation