mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Merge pull request #74 from Carreau/rename-nbformat
replace jupyter_nbformat by nbformat
This commit is contained in:
commit
9af6ed60e3
@ -13,7 +13,7 @@ from ..base.handlers import (
|
|||||||
IPythonHandler, FilesRedirectHandler,
|
IPythonHandler, FilesRedirectHandler,
|
||||||
path_regex,
|
path_regex,
|
||||||
)
|
)
|
||||||
from jupyter_nbformat import from_dict
|
from nbformat import from_dict
|
||||||
|
|
||||||
from ipython_genutils.py3compat import cast_bytes
|
from ipython_genutils.py3compat import cast_bytes
|
||||||
from ipython_genutils import text
|
from ipython_genutils import text
|
||||||
|
@ -10,8 +10,8 @@ import requests
|
|||||||
|
|
||||||
from jupyter_notebook.utils import url_path_join
|
from jupyter_notebook.utils import url_path_join
|
||||||
from jupyter_notebook.tests.launchnotebook import NotebookTestBase, assert_http_error
|
from jupyter_notebook.tests.launchnotebook import NotebookTestBase, assert_http_error
|
||||||
from jupyter_nbformat import write
|
from nbformat import write
|
||||||
from jupyter_nbformat.v4 import (
|
from nbformat.v4 import (
|
||||||
new_notebook, new_markdown_cell, new_code_cell, new_output,
|
new_notebook, new_markdown_cell, new_code_cell, new_output,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ from jupyter_core.application import (
|
|||||||
from jupyter_client import KernelManager
|
from jupyter_client import KernelManager
|
||||||
from jupyter_client.kernelspec import KernelSpecManager, NoSuchKernel, NATIVE_KERNEL_NAME
|
from jupyter_client.kernelspec import KernelSpecManager, NoSuchKernel, NATIVE_KERNEL_NAME
|
||||||
from jupyter_client.session import Session
|
from jupyter_client.session import Session
|
||||||
from jupyter_nbformat.sign import NotebookNotary
|
from nbformat.sign import NotebookNotary
|
||||||
from . import submodule
|
from . import submodule
|
||||||
from traitlets import (
|
from traitlets import (
|
||||||
Dict, Unicode, Integer, List, Bool, Bytes, Instance,
|
Dict, Unicode, Integer, List, Bool, Bytes, Instance,
|
||||||
|
@ -18,7 +18,7 @@ from jupyter_notebook.utils import (
|
|||||||
to_api_path,
|
to_api_path,
|
||||||
to_os_path,
|
to_os_path,
|
||||||
)
|
)
|
||||||
import jupyter_nbformat as nbformat
|
import nbformat
|
||||||
|
|
||||||
from ipython_genutils.py3compat import str_to_unicode
|
from ipython_genutils.py3compat import str_to_unicode
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import io
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import jupyter_nbformat as nbformat
|
import nbformat
|
||||||
|
|
||||||
from tornado import web
|
from tornado import web
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@ from tornado.web import HTTPError
|
|||||||
|
|
||||||
from .checkpoints import Checkpoints
|
from .checkpoints import Checkpoints
|
||||||
from traitlets.config.configurable import LoggingConfigurable
|
from traitlets.config.configurable import LoggingConfigurable
|
||||||
from jupyter_nbformat import sign, validate, ValidationError
|
from nbformat import sign, validate, ValidationError
|
||||||
from jupyter_nbformat.v4 import new_notebook
|
from nbformat.v4 import new_notebook
|
||||||
from ipython_genutils.importstring import import_item
|
from ipython_genutils.importstring import import_item
|
||||||
from traitlets import (
|
from traitlets import (
|
||||||
Any,
|
Any,
|
||||||
|
@ -18,11 +18,11 @@ from ..filecheckpoints import GenericFileCheckpoints
|
|||||||
from traitlets.config import Config
|
from traitlets.config import Config
|
||||||
from jupyter_notebook.utils import url_path_join, url_escape, to_os_path
|
from jupyter_notebook.utils import url_path_join, url_escape, to_os_path
|
||||||
from jupyter_notebook.tests.launchnotebook import NotebookTestBase, assert_http_error
|
from jupyter_notebook.tests.launchnotebook import NotebookTestBase, assert_http_error
|
||||||
from jupyter_nbformat import read, write, from_dict
|
from nbformat import read, write, from_dict
|
||||||
from jupyter_nbformat.v4 import (
|
from nbformat.v4 import (
|
||||||
new_notebook, new_markdown_cell,
|
new_notebook, new_markdown_cell,
|
||||||
)
|
)
|
||||||
from jupyter_nbformat import v2
|
from nbformat import v2
|
||||||
from ipython_genutils import py3compat
|
from ipython_genutils import py3compat
|
||||||
from ipython_genutils.tempdir import TemporaryDirectory
|
from ipython_genutils.tempdir import TemporaryDirectory
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ from tornado.web import HTTPError
|
|||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
|
|
||||||
from jupyter_nbformat import v4 as nbformat
|
from nbformat import v4 as nbformat
|
||||||
|
|
||||||
from ipython_genutils.tempdir import TemporaryDirectory
|
from ipython_genutils.tempdir import TemporaryDirectory
|
||||||
from traitlets import TraitError
|
from traitlets import TraitError
|
||||||
|
@ -12,8 +12,8 @@ pjoin = os.path.join
|
|||||||
|
|
||||||
from jupyter_notebook.utils import url_path_join
|
from jupyter_notebook.utils import url_path_join
|
||||||
from jupyter_notebook.tests.launchnotebook import NotebookTestBase, assert_http_error
|
from jupyter_notebook.tests.launchnotebook import NotebookTestBase, assert_http_error
|
||||||
from jupyter_nbformat.v4 import new_notebook
|
from nbformat.v4 import new_notebook
|
||||||
from jupyter_nbformat import write
|
from nbformat import write
|
||||||
|
|
||||||
class SessionAPI(object):
|
class SessionAPI(object):
|
||||||
"""Wrapper for notebook API calls."""
|
"""Wrapper for notebook API calls."""
|
||||||
|
@ -10,8 +10,8 @@ pjoin = os.path.join
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from jupyter_nbformat import write
|
from nbformat import write
|
||||||
from jupyter_nbformat.v4 import (new_notebook,
|
from nbformat.v4 import (new_notebook,
|
||||||
new_markdown_cell, new_code_cell,
|
new_markdown_cell, new_code_cell,
|
||||||
new_output)
|
new_output)
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
import os
|
import os
|
||||||
import io
|
import io
|
||||||
from jupyter_notebook.utils import url_path_join
|
from jupyter_notebook.utils import url_path_join
|
||||||
from jupyter_nbformat import write
|
from nbformat import write
|
||||||
from jupyter_nbformat.v4 import new_notebook
|
from nbformat.v4 import new_notebook
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
-e git+https://github.com/ipython/traitlets.git#egg=traitlets
|
-e git+https://github.com/ipython/traitlets.git#egg=traitlets
|
||||||
-e git+https://github.com/jupyter/jupyter_core.git#egg=jupyter_core
|
-e git+https://github.com/jupyter/jupyter_core.git#egg=jupyter_core
|
||||||
-e git+https://github.com/jupyter/jupyter_nbformat.git#egg=jupyter_nbformat
|
-e git+https://github.com/jupyter/nbformat.git#egg=nbformat
|
||||||
-e git+https://github.com/jupyter/jupyter_client.git#egg=jupyter_client
|
-e git+https://github.com/jupyter/jupyter_client.git#egg=jupyter_client
|
||||||
-e git+https://github.com/ipython/ipython.git#egg=ipython
|
-e git+https://github.com/ipython/ipython.git#egg=ipython
|
||||||
-e git+https://github.com/ipython/ipykernel.git#egg=ipykernel
|
-e git+https://github.com/ipython/ipykernel.git#egg=ipykernel
|
||||||
|
2
setup.py
2
setup.py
@ -146,7 +146,7 @@ install_requires = [
|
|||||||
'traitlets',
|
'traitlets',
|
||||||
'jupyter_core',
|
'jupyter_core',
|
||||||
'jupyter_client',
|
'jupyter_client',
|
||||||
'jupyter_nbformat',
|
'nbformat',
|
||||||
'nbconvert',
|
'nbconvert',
|
||||||
'ipykernel', # bless IPython kernel for now
|
'ipykernel', # bless IPython kernel for now
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user