How to invoke ipython in Mac OS X?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lou Pecora

    #1

    How to invoke ipython in Mac OS X?

    I installed the SciPy superpackage and have pylab, matplotlib, scipy,
    and numpy apparently running well. But I want to use matplotlib/pylab
    interactively. The instructions suggest doing this in IPython. But
    using ipython on the command line gives me an error. The system doesn't
    know the command. Apparently there is no ipython executable in one of
    the bin directories. I thought the superpackage would add that
    automatically, but I guess not.

    Can anyone tell me how to get ipython running on my MacOSX 10.4 system?

    Thanks for any help.

    (Yes, I asked on the SciPy email list, but never got an answer.)

    -- Lou Pecora (my views are my own) REMOVE THIS to email me.
  • Jerry

    #2
    Re: How to invoke ipython in Mac OS X?

    Did you install it with the --install-scripts command line option? If
    you did, then there will be a ipython script located in the
    $INSTALL_SCRIPT S/bin directory. If you didn't, then I think the
    default location is /usr/lib/python or something like that.

    Comment

    • Diez B. Roggisch

      #3
      Re: How to invoke ipython in Mac OS X?

      Lou Pecora wrote:
      I installed the SciPy superpackage and have pylab, matplotlib, scipy,
      and numpy apparently running well. But I want to use matplotlib/pylab
      interactively. The instructions suggest doing this in IPython. But
      using ipython on the command line gives me an error. The system doesn't
      know the command. Apparently there is no ipython executable in one of
      the bin directories. I thought the superpackage would add that
      automatically, but I guess not.
      >
      Can anyone tell me how to get ipython running on my MacOSX 10.4 system?
      This is just a guess - but did you check your

      /Library/Frameworks/Python.framewor k/Versions/Current/bin

      (out of my head, but should be precise enough to get you there)

      directory for the ipython-binary? Usually, that will be the prefix of
      anything compiled/installed to framework-builds. So either you add that to
      your path, or create links to e.g. /usr/local/bin



      Diez

      Comment

      • Lou Pecora

        #4
        Re: How to invoke ipython in Mac OS X?

        In article <4pk8r8FjagluU1 @uni-berlin.de>,
        "Diez B. Roggisch" <deets@nospam.w eb.dewrote:
        Lou Pecora wrote:
        >
        I installed the SciPy superpackage and have pylab, matplotlib, scipy,
        and numpy apparently running well. But I want to use matplotlib/pylab
        interactively. The instructions suggest doing this in IPython. But
        using ipython on the command line gives me an error. The system doesn't
        know the command. Apparently there is no ipython executable in one of
        the bin directories. I thought the superpackage would add that
        automatically, but I guess not.

        Can anyone tell me how to get ipython running on my MacOSX 10.4 system?
        >
        This is just a guess - but did you check your
        >
        /Library/Frameworks/Python.framewor k/Versions/Current/bin

        Just checked it. Nothing there for IPython.
        directory for the ipython-binary? Usually, that will be the prefix of
        anything compiled/installed to framework-builds. So either you add that to
        your path, or create links to e.g. /usr/local/bin
        I'm not quite following this last suggestion. Can you explain more.
        Sorry.

        -- Lou Pecora (my views are my own) REMOVE THIS to email me.

        Comment

        • Lou Pecora

          #5
          Re: How to invoke ipython in Mac OS X?

          In article <1161096254.691 132.222220@e3g2 000cwe.googlegr oups.com>,
          "Jerry" <jweida@gmail.c omwrote:
          Did you install it with the --install-scripts command line option? If
          you did, then there will be a ipython script located in the
          $INSTALL_SCRIPT S/bin directory. If you didn't, then I think the
          default location is /usr/lib/python or something like that.
          No, I did not use the install-scripts command line option. It was
          installed from the Package (it's down there in
          /Library/Frameworks/Python...blah, blah/site-packages/IPython).

          -- Lou Pecora (my views are my own) REMOVE THIS to email me.

          Comment

          • Diez B. Roggisch

            #6
            Re: How to invoke ipython in Mac OS X?

            Lou Pecora wrote:
            In article <4pk8r8FjagluU1 @uni-berlin.de>,
            "Diez B. Roggisch" <deets@nospam.w eb.dewrote:
            >
            >Lou Pecora wrote:
            >>
            I installed the SciPy superpackage and have pylab, matplotlib, scipy,
            and numpy apparently running well. But I want to use matplotlib/pylab
            interactively. The instructions suggest doing this in IPython. But
            using ipython on the command line gives me an error. The system
            doesn't
            know the command. Apparently there is no ipython executable in one of
            the bin directories. I thought the superpackage would add that
            automatically, but I guess not.
            >
            Can anyone tell me how to get ipython running on my MacOSX 10.4 system?
            >>
            >This is just a guess - but did you check your
            >>
            >/Library/Frameworks/Python.framewor k/Versions/Current/bin
            >
            >
            Just checked it. Nothing there for IPython.
            Are you sure you checked in all possible locations - it might well be that
            e.g. the shipped python2.3 is under

            /System/Library/....

            I can't check up on that myself, as at work I'm using Linux.

            Where it is depends on which python interpreter you used to compile scipy.
            And possibly it got installed under /usr/local/bin - this could be caused
            by scipy installing it there.
            >directory for the ipython-binary? Usually, that will be the prefix of
            >anything compiled/installed to framework-builds. So either you add that
            >to your path, or create links to e.g. /usr/local/bin
            >
            I'm not quite following this last suggestion. Can you explain more.
            _If_ the binary got installed there, you need to add the path to your
            PATH-environment, or create a link to a location that is in the path.

            For example, I have

            ln -s /Library/Frameworks/Python.framewor k/Versions/2.4/bin/pydoc /usr/bin/pydoc2.4

            on my system, to have the pydoc2.4 command available.

            You could also create an alias, of course.

            Diez

            Comment

            Working...