Natural Language Processing with Python .dispersion_plot returns nothing
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Mon Jun 17 19:16:14 EDT 2013
On Mon, 17 Jun 2013 09:31:18 -0700, sixtyfourbit wrote:
> I'm in the first chapter of Natural Language Processing with Python and
> am trying to run the example .dispersion_plot. I am using Python 2.7.4
> (Anaconda) on Mac OSX 10.8.
>
> When I load all of the necessary modules and try to create the
> dispersion plott, I get no return - no plot, no error message, not even
> a new >>> prompt, just a blinking cursor under the last line I typed.
> Here is what I've been doing:
[...]
> ...and nothing. I can't paste it but my cursor is just blinking under my
> last command with no prompt.
I expect that the plot is shown in a graphical window opened somewhere on
screen, perhaps *under* the terminal window where you can't see it. Or
maybe even a dialog box showing an error. Until that window or dialog is
closed, the dispersion_plot command hasn't finished and Python will just
wait forever.
--
Steven
More information about the Python-list
mailing list