コード例 #1
0
ファイル: notebookapp.py プロジェクト: jcjaskula/ipython
import json
import logging
import os
import random
import re
import select
import signal
import socket
import sys
import threading
import webbrowser


# check for pyzmq
from IPython.utils.zmqrelated import check_for_zmq
check_for_zmq('13', 'IPython.html')

from jinja2 import Environment, FileSystemLoader

# Install the pyzmq ioloop. This has to be done before anything else from
# tornado is imported.
from zmq.eventloop import ioloop
ioloop.install()

# check for tornado 3.1.0
msg = "The IPython Notebook requires tornado >= 4.0"
try:
    import tornado
except ImportError:
    raise ImportError(msg)
try:
コード例 #2
0
import io
import json
import logging
import os
import random
import select
import signal
import socket
import sys
import threading
import time
import webbrowser

# check for pyzmq 2.1.11
from IPython.utils.zmqrelated import check_for_zmq
check_for_zmq('2.1.11', 'IPython.html')

from jinja2 import Environment, FileSystemLoader

# Install the pyzmq ioloop. This has to be done before anything else from
# tornado is imported.
from zmq.eventloop import ioloop
ioloop.install()

# check for tornado 3.1.0
msg = "The IPython Notebook requires tornado >= 3.1.0"
try:
    import tornado
except ImportError:
    raise ImportError(msg)
try:
コード例 #3
0
import os
import random
import select
import signal
import socket
import sys
import threading
import time
import uuid
import webbrowser


# Third party
# check for pyzmq 2.1.11
from IPython.utils.zmqrelated import check_for_zmq
check_for_zmq('2.1.11', 'IPython.html')

import zmq
from jinja2 import Environment, FileSystemLoader

# Install the pyzmq ioloop. This has to be done before anything else from
# tornado is imported.
from zmq.eventloop import ioloop
ioloop.install()

# check for tornado 2.1.0
msg = "The IPython Notebook requires tornado >= 2.1.0"
try:
    import tornado
except ImportError:
    raise ImportError(msg)
コード例 #4
0
ファイル: __init__.py プロジェクト: monker490/WordVec
#-----------------------------------------------------------------------------
#  Copyright (C) 2013  The IPython Development Team
#
#  Distributed under the terms of the BSD License.  The full license is in
#  the file COPYING.txt, distributed as part of this software.
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
# Verify zmq version dependency >= 2.1.11
#-----------------------------------------------------------------------------

from IPython.utils.zmqrelated import check_for_zmq

check_for_zmq('2.1.11', 'IPython.kernel.zmq')

from .session import Session

コード例 #5
0
ファイル: notebookapp.py プロジェクト: renjiec/ipython
import os
import random
import re
import select
import signal
import socket
import sys
import threading
import time
import uuid
import webbrowser

# Third party
# check for pyzmq 2.1.11
from IPython.utils.zmqrelated import check_for_zmq
check_for_zmq('2.1.11', 'IPython.frontend.html.notebook')

import zmq
from jinja2 import Environment, FileSystemLoader

# Install the pyzmq ioloop. This has to be done before anything else from
# tornado is imported.
from zmq.eventloop import ioloop
ioloop.install()

# check for tornado 2.1.0
msg = "The IPython Notebook requires tornado >= 2.1.0"
try:
    import tornado
except ImportError:
    raise ImportError(msg)
コード例 #6
0
ファイル: notebookapp.py プロジェクト: gmatteo/ipython
import os
import random
import re
import select
import signal
import socket
import sys
import threading
import time
import webbrowser


# check for pyzmq 2.1.11
from IPython.utils.zmqrelated import check_for_zmq

check_for_zmq("2.1.11", "IPython.html")

from jinja2 import Environment, FileSystemLoader

# Install the pyzmq ioloop. This has to be done before anything else from
# tornado is imported.
from zmq.eventloop import ioloop

ioloop.install()

# check for tornado 3.1.0
msg = "The IPython Notebook requires tornado >= 3.1.0"
try:
    import tornado
except ImportError:
    raise ImportError(msg)
コード例 #7
0
ファイル: notebookapp.py プロジェクト: SONEINT/ipython
import os
import random
import select
import signal
import socket
import sys
import threading
import time
import uuid
import webbrowser


# Third party
# check for pyzmq 2.1.11
from IPython.utils.zmqrelated import check_for_zmq
check_for_zmq('2.1.11', 'IPython.frontend.html.notebook')

import zmq
from jinja2 import Environment, FileSystemLoader

# Install the pyzmq ioloop. This has to be done before anything else from
# tornado is imported.
from zmq.eventloop import ioloop
ioloop.install()

# check for tornado 2.1.0
msg = "The IPython Notebook requires tornado >= 2.1.0"
try:
    import tornado
except ImportError:
    raise ImportError(msg)
コード例 #8
0
ファイル: __init__.py プロジェクト: mattvonrocketstein/smash
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------

import os
import warnings

import zmq

from IPython.config.configurable import MultipleInstanceError
from IPython.utils.zmqrelated import check_for_zmq

min_pyzmq = '2.1.11'

check_for_zmq(min_pyzmq, 'IPython.parallel')

from IPython.utils.pickleutil import Reference

from .client.asyncresult import *
from .client.client import Client
from .client.remotefunction import *
from .client.view import *
from .controller.dependency import *
from .error import *
from .util import interactive

#-----------------------------------------------------------------------------
# Functions
#-----------------------------------------------------------------------------
コード例 #9
0
ファイル: __init__.py プロジェクト: vbraun/ipython
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------

import os
import warnings

import zmq

from IPython.config.configurable import MultipleInstanceError
from IPython.utils.zmqrelated import check_for_zmq

min_pyzmq = '2.1.11'

check_for_zmq(min_pyzmq, 'ipython_parallel')

from IPython.utils.pickleutil import Reference

from .client.asyncresult import *
from .client.client import Client
from .client.remotefunction import *
from .client.view import *
from .controller.dependency import *
from .error import *
from .util import interactive

#-----------------------------------------------------------------------------
# Functions
#-----------------------------------------------------------------------------
コード例 #10
0
import os
import random
import re
import select
import signal
import socket
import ssl
import sys
import threading
import webbrowser


# check for pyzmq
from IPython.utils.zmqrelated import check_for_zmq

check_for_zmq("13", "IPython.html")

from jinja2 import Environment, FileSystemLoader

# Install the pyzmq ioloop. This has to be done before anything else from
# tornado is imported.
from zmq.eventloop import ioloop

ioloop.install()

# check for tornado 3.1.0
msg = "The IPython Notebook requires tornado >= 4.0"
try:
    import tornado
except ImportError:
    raise ImportError(msg)
コード例 #11
0
ファイル: __init__.py プロジェクト: Tasarinan/PortablePython3
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.

# Verify zmq version dependency

from IPython.utils.zmqrelated import check_for_zmq

check_for_zmq('13', 'IPython.kernel.zmq')

from .session import Session

コード例 #12
0
ファイル: __init__.py プロジェクト: pombreda/dist-packages
import warnings

try:
    import zmq
except ImportError:
    from IPython.utils import py3compat
    _py = "python3" if py3compat.PY3 else "python"
    raise ImportError("Could not import zmq module, please install %s-zmq" %
                      _py)

from IPython.config.configurable import MultipleInstanceError
from IPython.utils.zmqrelated import check_for_zmq

min_pyzmq = '2.1.11'

check_for_zmq(min_pyzmq, 'IPython.parallel')

from IPython.utils.pickleutil import Reference

from .client.asyncresult import *
from .client.client import Client
from .client.remotefunction import *
from .client.view import *
from .controller.dependency import *
from .error import *
from .util import interactive

#-----------------------------------------------------------------------------
# Functions
#-----------------------------------------------------------------------------
コード例 #13
0
ファイル: __init__.py プロジェクト: vbraun/ipython
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------

import os
import warnings

import zmq

from IPython.config.configurable import MultipleInstanceError
from IPython.utils.zmqrelated import check_for_zmq

min_pyzmq = "2.1.11"

check_for_zmq(min_pyzmq, "ipython_parallel")

from IPython.utils.pickleutil import Reference

from .client.asyncresult import *
from .client.client import Client
from .client.remotefunction import *
from .client.view import *
from .controller.dependency import *
from .error import *
from .util import interactive

# -----------------------------------------------------------------------------
# Functions
# -----------------------------------------------------------------------------
コード例 #14
0
ファイル: __init__.py プロジェクト: gear2000/jiffy-base-venv
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.

# Verify zmq version dependency

from IPython.utils.zmqrelated import check_for_zmq

check_for_zmq('13', 'IPython.kernel.zmq')

from .session import Session