include version in --version output

Min RK 11 years ago
parent cead281f26
commit b9ffd1428e

@ -24,6 +24,7 @@ from jupyter_core.paths import jupyter_data_dir, jupyter_path, SYSTEM_JUPYTER_PA
from ipython_genutils.path import ensure_dir_exists
from ipython_genutils.py3compat import string_types, cast_unicode_py2
from ipython_genutils.tempdir import TemporaryDirectory
from ._version import __version__
class ArgumentConflict(ValueError):
pass
@ -258,7 +259,7 @@ aliases = {
class InstallNBExtensionApp(JupyterApp):
"""Entry point for installing notebook extensions"""
version = __version__
description = """Install Jupyter notebook extensions
Usage
@ -317,7 +318,7 @@ class InstallNBExtensionApp(JupyterApp):
class NBExtensionApp(JupyterApp):
name = "jupyter nbextension"
version = __version__
description = "Work with Jupyter notebook extensions"
subcommands = dict(

@ -52,6 +52,7 @@ from tornado.log import LogFormatter, app_log, access_log, gen_log
from notebook import (
DEFAULT_STATIC_FILES_PATH,
DEFAULT_TEMPLATE_PATH_LIST,
__version__,
)
from .base.handlers import Template404
from .log import log_request
@ -269,7 +270,7 @@ class NotebookWebApplication(web.Application):
class NbserverListApp(JupyterApp):
version = __version__
description="List currently running notebook servers in this profile."
flags = dict(
@ -341,7 +342,7 @@ aliases.update({
class NotebookApp(JupyterApp):
name = 'jupyter-notebook'
version = __version__
description = """
The Jupyter HTML Notebook.

Loading…
Cancel
Save