diff --git a/docs/source/development/messaging.txt b/docs/source/development/messaging.txt index e57021e..9038503 100644 --- a/docs/source/development/messaging.txt +++ b/docs/source/development/messaging.txt @@ -827,7 +827,7 @@ data_pub messages are constructed via the :func:`IPython.lib.datapub.publish_dat .. sourcecode:: python - from IPython.zmq.datapub import publish_data + from IPython.kernel.zmq.datapub import publish_data ns = dict(x=my_array) publish_data(ns) diff --git a/docs/source/development/parallel_messages.txt b/docs/source/development/parallel_messages.txt index b51d2bc..158f431 100644 --- a/docs/source/development/parallel_messages.txt +++ b/docs/source/development/parallel_messages.txt @@ -260,7 +260,7 @@ code string, must be able to send arbitrary (pickleable) Python objects. And ide as little data as we can. The `buffers` property of a Message was introduced for this purpose. -Utility method :func:`build_apply_message` in :mod:`IPython.zmq.serialize` wraps a +Utility method :func:`build_apply_message` in :mod:`IPython.kernel.zmq.serialize` wraps a function signature and builds a sendable buffer format for minimal data copying (exactly zero copies of numpy array data or buffers or large strings). diff --git a/docs/source/development/reorg.txt b/docs/source/development/reorg.txt index 1b14ec2..10e7fed 100644 --- a/docs/source/development/reorg.txt +++ b/docs/source/development/reorg.txt @@ -39,7 +39,7 @@ Subpackage descriptions Usually, these are short, single file modules. * :mod:`IPython.frontend`. This package contains the various IPython - frontends which communicate with the :mod:`IPython.zmq` kernels (see + frontends which communicate with the :mod:`IPython.kernel.zmq` kernels (see :ref:`Messaging in IPython `). This includes the :ref:`ipython notebook `, :ref:`ipython qtconsole `, and :ref:`ipython console ` entry points. @@ -79,7 +79,7 @@ Subpackage descriptions functions and classes that serve a single purpose and that don't depend on things in the rest of IPython. -* :mod:`IPython.zmq`. This sub-package contains code related to starting and - managing IPython kernels, which :mod:`IPython.frontend` instances can then +* :mod:`IPython.kernel.zmq`. This sub-package contains code related to starting + and managing IPython kernels, which :mod:`IPython.frontend` instances can then communicate with (see :ref:`Messaging in IPython `). diff --git a/docs/source/install/install.txt b/docs/source/install/install.txt index e01117b..c4e3aad 100644 --- a/docs/source/install/install.txt +++ b/docs/source/install/install.txt @@ -274,7 +274,7 @@ Security in IPython.parallel is provided by SSH tunnels. By default, Linux and OSX clients will use the shell ssh command, but on Windows, we also support tunneling with paramiko_. -Dependencies for IPython.zmq +Dependencies for IPython.kernel.zmq ============================ pyzmq @@ -286,7 +286,7 @@ are found in the PyZMQ_ project, which is easy_install-able once you have ZeroMQ installed. If you are on Python 2.6 or 2.7 on OSX, or 2.7 on Windows, pyzmq has eggs that include ZeroMQ itself. -IPython.zmq depends on pyzmq >= 2.1.4. +IPython.kernel.zmq depends on pyzmq >= 2.1.4. Dependencies for the IPython QT console ======================================= @@ -300,7 +300,7 @@ PyZMQ. Qt -- -Also with 0.11, a new GUI was added using the work in :mod:`IPython.zmq`, which +Also with 0.11, a new GUI was added using the work in :mod:`IPython.kernel.zmq`, which can be launched with ``ipython qtconsole``. The GUI is built on Qt, and works with either PyQt, which can be installed from the `PyQt website `_, or `PySide diff --git a/docs/source/parallel/parallel_security.txt b/docs/source/parallel/parallel_security.txt index ea9338e..a8b21b6 100644 --- a/docs/source/parallel/parallel_security.txt +++ b/docs/source/parallel/parallel_security.txt @@ -6,10 +6,10 @@ Security details of IPython .. note:: - This section is not thorough, and IPython.zmq needs a thorough security + This section is not thorough, and IPython.kernel.zmq needs a thorough security audit. -IPython's :mod:`IPython.zmq` package exposes the full power of the +IPython's :mod:`IPython.kernel.zmq` package exposes the full power of the Python interpreter over a TCP/IP network for the purposes of parallel computing. This feature brings up the important question of IPython's security model. This document gives details about this model and how it is implemented diff --git a/examples/lib/internal_ipkernel.py b/examples/lib/internal_ipkernel.py index afdb065..cd150a7 100644 --- a/examples/lib/internal_ipkernel.py +++ b/examples/lib/internal_ipkernel.py @@ -6,7 +6,7 @@ import subprocess import sys from IPython.lib.kernel import connect_qtconsole -from IPython.zmq.ipkernel import IPKernelApp +from IPython.kernel.zmq.ipkernel import IPKernelApp #----------------------------------------------------------------------------- # Functions and classes diff --git a/examples/notebooks/Animations Using clear_output.ipynb b/examples/notebooks/Animations Using clear_output.ipynb index ef925b3..f513f9c 100644 --- a/examples/notebooks/Animations Using clear_output.ipynb +++ b/examples/notebooks/Animations Using clear_output.ipynb @@ -155,7 +155,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } diff --git a/examples/notebooks/Cell Magics.ipynb b/examples/notebooks/Cell Magics.ipynb index a27475a..6943826 100644 --- a/examples/notebooks/Cell Magics.ipynb +++ b/examples/notebooks/Cell Magics.ipynb @@ -77,7 +77,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } diff --git a/examples/notebooks/Custom Display Logic.ipynb b/examples/notebooks/Custom Display Logic.ipynb index 2c79875..ed10a91 100644 --- a/examples/notebooks/Custom Display Logic.ipynb +++ b/examples/notebooks/Custom Display Logic.ipynb @@ -65,7 +65,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } diff --git a/examples/notebooks/Data Publication API.ipynb b/examples/notebooks/Data Publication API.ipynb index d59200e..ae58c64 100644 --- a/examples/notebooks/Data Publication API.ipynb +++ b/examples/notebooks/Data Publication API.ipynb @@ -51,7 +51,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } @@ -102,7 +102,7 @@ "collapsed": false, "input": [ "def publish_it():\n", - " from IPython.zmq.datapub import publish_data\n", + " from IPython.kernel.zmq.datapub import publish_data\n", " publish_data(dict(a='hi'))" ], "language": "python", @@ -181,7 +181,7 @@ "collapsed": false, "input": [ "def simulation_loop():\n", - " from IPython.zmq.datapub import publish_data\n", + " from IPython.kernel.zmq.datapub import publish_data\n", " import time\n", " import numpy as np\n", " for i in range(10):\n", diff --git a/examples/notebooks/Part 1 - Running Code.ipynb b/examples/notebooks/Part 1 - Running Code.ipynb index 9da3129..27b4a75 100644 --- a/examples/notebooks/Part 1 - Running Code.ipynb +++ b/examples/notebooks/Part 1 - Running Code.ipynb @@ -371,7 +371,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } diff --git a/examples/notebooks/Part 2 - Basic Output.ipynb b/examples/notebooks/Part 2 - Basic Output.ipynb index fbe134f..dd8731e 100644 --- a/examples/notebooks/Part 2 - Basic Output.ipynb +++ b/examples/notebooks/Part 2 - Basic Output.ipynb @@ -1023,7 +1023,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } diff --git a/examples/notebooks/Part 3 - Pylab and Matplotlib.ipynb b/examples/notebooks/Part 3 - Pylab and Matplotlib.ipynb index 213f9b5..e353b18 100644 --- a/examples/notebooks/Part 3 - Pylab and Matplotlib.ipynb +++ b/examples/notebooks/Part 3 - Pylab and Matplotlib.ipynb @@ -56,7 +56,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } diff --git a/examples/notebooks/SymPy Examples.ipynb b/examples/notebooks/SymPy Examples.ipynb index 025f08f..f0c2be7 100644 --- a/examples/notebooks/SymPy Examples.ipynb +++ b/examples/notebooks/SymPy Examples.ipynb @@ -42,7 +42,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'." ] } diff --git a/examples/notebooks/Trapezoid Rule.ipynb b/examples/notebooks/Trapezoid Rule.ipynb index 7d88649..616e19c 100644 --- a/examples/notebooks/Trapezoid Rule.ipynb +++ b/examples/notebooks/Trapezoid Rule.ipynb @@ -42,7 +42,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } diff --git a/examples/parallel/iopubwatcher.py b/examples/parallel/iopubwatcher.py index d616584..8c492d6 100644 --- a/examples/parallel/iopubwatcher.py +++ b/examples/parallel/iopubwatcher.py @@ -19,7 +19,7 @@ import sys import json import zmq -from IPython.zmq.session import Session +from IPython.kernel.zmq.session import Session from IPython.parallel.util import disambiguate_url from IPython.utils.py3compat import str_to_bytes from IPython.utils.path import get_security_file diff --git a/examples/parallel/options/Parallel MC Options.ipynb b/examples/parallel/options/Parallel MC Options.ipynb index 1abbbe5..24e18bc 100644 --- a/examples/parallel/options/Parallel MC Options.ipynb +++ b/examples/parallel/options/Parallel MC Options.ipynb @@ -44,7 +44,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] } diff --git a/examples/tests/pylab-switch/Pylab Switching.ipynb b/examples/tests/pylab-switch/Pylab Switching.ipynb index 80af27c..cbd92ef 100644 --- a/examples/tests/pylab-switch/Pylab Switching.ipynb +++ b/examples/tests/pylab-switch/Pylab Switching.ipynb @@ -53,7 +53,7 @@ "stream": "stdout", "text": [ "\n", - "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n", + "Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline].\n", "For more information, type 'help(pylab)'.\n" ] }, diff --git a/examples/vim/README.rst b/examples/vim/README.rst index 4eef20d..944e9f5 100644 --- a/examples/vim/README.rst +++ b/examples/vim/README.rst @@ -66,7 +66,7 @@ same as passing just the ``--existing`` flag to ``ipython qtconsole`` and kernel - just watch for the connection string that gets printed when you open the notebook, or use the ``%connect_info`` magic to get the connection string. If you are still using 0.11, you can launch a regular - kernel using ``python -c "from IPython.zmq.ipkernel import main; main()"`` + kernel using ``python -c "from IPython.kernel.zmq.ipkernel import main; main()"`` ------------------------ Sending lines to IPython @@ -176,7 +176,7 @@ Current issues: stty stop undef # to unmap ctrl-s - In vim, if you're getting ``ImportError: No module named - IPython.zmq.blockingkernelmanager`` but are able to import it in regular + IPython.kernel.zmq.blockingkernelmanager`` but are able to import it in regular python, **either** 1. your ``sys.path`` in vim differs from the ``sys.path`` in regular python. diff --git a/examples/vim/ipy.vim b/examples/vim/ipy.vim index 3953902..adc87ab 100644 --- a/examples/vim/ipy.vim +++ b/examples/vim/ipy.vim @@ -83,9 +83,9 @@ def km_from_string(s=''): or just 'kernel-12345.json' for IPython 0.12 """ from os.path import join as pjoin - from IPython.zmq.blockingkernelmanager import BlockingKernelManager, Empty + from IPython.kernel.zmq.blockingkernelmanager import BlockingKernelManager, Empty from IPython.config.loader import KeyValueConfigLoader - from IPython.zmq.kernelapp import kernel_aliases + from IPython.kernel.zmq.kernelapp import kernel_aliases global km,send,Empty s = s.replace('--existing', '')