Paul Fisher | 19 Mar 01:37 2014
Picon
Picon

Anyone had any luck using PyNGL with Spyder (OS X Mavericks)

So I'm using the dmg install on Mavericks and I finally figured out where in the app package to put the PyNGL site-package. The problem is I get complaints about not being able to open an X11 window for any call to plot() that gets handled by NGL:

 plot(c1)
  File "ClimateGraphics.py", line 138, in plot
    w = Ngl.open_wks('x11','Climate Workbook')
AttributeError: 'module' object has no attribute 'open_wks'

The reason I need this is for the ClimateUtilities and ClimateGraphics packages that go with Ray PierreHumbert's "Principles of Planetary Climate". I could use MatPlotLib but for assorted reasons I'd prefer to use NGL (for one thing most of the examples were written to use NGL and do not display all that well with MatPlotLib ... missing axis labels etc.)

I'm trying to create an environment that can be used by high school students studying climate. Obviously we are doing some programming but my goal here is not to turn them into a bunch *nix hackers (... I have a completely separate course for that ...)

Any thoughts out there?

I do have XQuartz installed.

Thanks,

Paul Fisher

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
abcat198918 | 16 Mar 04:34 2014
Picon

Can I use Ipython in Syder(light)?

HI,
I have installed spyder2.25 and ipython1.2.1 in DeepinLinux(a fork from Ubuntu 13.04) and they all work fine. I think ipython can work in Spyder(light), because I can see the figure in the "Spyder2.20 Documentation" - "Light Mode" .While when I started the spyder(light), the default console is python. I tried to configure the "Preferences"-"Console" to ipython, but it creashed with the error. Is it possible to set the default prompt in spyder(light) with ipython?
>=========
 IPython
=========

Tools for Interactive Computing in Python
=========================================

    A Python shell with automatic history (input and output), dynamic object
    introspection, easier configuration, command completion, access to the
    system shell and more.  IPython can also be embedded in running programs.

Usage

    ipython [subcommand] [options] [-c cmd | -m mod | file] [--] [arg] ...

    If invoked with no options, it executes the file and exits, passing the
    remaining arguments to the script, just as if you had specified the same
    command with python. You may need to specify `--` before args to be passed
    to the script, to prevent IPython from attempting to parse them. If you
    specify the option `-i` before the filename, it will enter an interactive
    IPython session after running the script, rather than exiting. Files ending
    in .py will be treated as normal Python, but files ending in .ipy can
    contain special IPython syntax (magic commands, shell expansions, etc.).

    Almost all configuration in IPython is available via the command-line. Do
    `ipython --help-all` to see all available options.  For persistent
    configuration, look into your `ipython_config.py` configuration file for
    details.

    This file is typically installed in the `IPYTHONDIR` directory, and there
    is a separate configuration directory for each profile. The default profile
    directory will be located in $IPYTHONDIR/profile_default. For Linux users,
    IPYTHONDIR defaults to `$HOME/.config/ipython`, and for other Unix systems
    to `$HOME/.ipython`.  For Windows users, $HOME resolves to C:\Documents
    and Settings\YourUserName in most instances.

    To initialize a profile with the default configuration file, do::

      $> ipython profile create

    and start editing `IPYTHONDIR/profile_default/ipython_config.py`

    In IPython's documentation, we will refer to this directory as
    `IPYTHONDIR`, you can change its default location by creating an
    environment variable with this name and setting it to the desired path.

    For more information, see the manual available in HTML and PDF in your
    installation, or online at http://ipython.org/documentation.html.

Subcommands
-----------

Subcommands are launched as `ipython cmd [args]`. For information on using
subcommand 'cmd', do: `ipython cmd -h`.

locate
    print the path to the IPython dir
profile
    Create and manage IPython profiles.
console
    Launch the IPython terminal-based Console.
kernel
    Start a kernel without an attached frontend.
notebook
    Launch the IPython HTML Notebook Server.
nbconvert
    Convert notebooks to/from other formats.
qtconsole
    Launch the IPython Qt Console.
history
    Manage the IPython history database.

Options
-------

Arguments that take values are actually convenience aliases to full
Configurables, whose aliases are listed on the help line. For more information
on full configurables, see '--help-all'.

--no-autoindent
    Turn off autoindenting.
--autoedit-syntax
    Turn on auto editing of files with syntax errors.
--deep-reload
    Enable deep (recursive) reloading by default. IPython can use the
    deep_reload module which reloads changes in modules recursively (it
    replaces the reload() function, so you don't need to change anything to
    use it). deep_reload() forces a full reload of modules whose code may
    have changed, which the default reload() function does not.  When
    deep_reload is off, IPython will use the normal reload(), but
    deep_reload will still be available as dreload(). This feature is off
    by default [which means that you have both normal reload() and
    dreload()].
--confirm-exit
    Set to confirm when you try to exit IPython with an EOF (Control-D
    in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit',
    you can force a direct exit without any confirmation.
--pylab
    Pre-load matplotlib and numpy for interactive use with
    the default matplotlib backend.
--matplotlib
    Configure matplotlib for interactive use with
    the default matplotlib backend.
--term-title
    Enable auto setting the terminal title.
--classic
    Gives IPython a similar feel to the classic Python prompt.
--autoindent
    Turn on autoindenting.
--no-automagic
    Turn off the auto calling of magic commands.
--banner
    Display a banner upon starting IPython.
--automagic
    Turn on the auto calling of magic commands. Type %%magic at the
    IPython  prompt  for  more information.
--no-deep-reload
    Disable deep (recursive) reloading by default.
--no-term-title
    Disable auto setting the terminal title.
--nosep
    Eliminate all spacing between prompts.
-i
    If running code from the command line, become interactive afterwards.
    Note: can also be given simply as '-i.'
--debug
    set log level to logging.DEBUG (maximize logging output)
--pprint
    Enable auto pretty printing of results.
--no-autoedit-syntax
    Turn off auto editing of files with syntax errors.
--quiet
    set log level to logging.CRITICAL (minimize logging output)
--no-color-info
    Disable using colors for info related things.
--color-info
    IPython can display information about objects via a set of func-
    tions, and optionally can use colors for this, syntax highlighting
    source code and various other elements.  However, because this
    information is passed through a pager (like 'less') and many pagers get
    confused with color codes, this option is off by default.  You can test
    it and turn it on permanently in your ipython_config.py file if it
    works for you.  Test it and turn it on permanently if it works with
    your system.  The magic function %%color_info allows you to toggle this
    interactively for testing.
--init
    Initialize profile with default config files.  This is equivalent
    to running `ipython profile create <profile>` prior to startup.
--no-pdb
    Disable auto calling the pdb debugger after every exception.
--quick
    Enable quick startup with no config files.
--no-confirm-exit
    Don't prompt the user when exiting.
--pydb
    Use the third party 'pydb' package as debugger, instead of pdb.
    Requires that pydb is installed.
--pdb
    Enable auto calling the pdb debugger after every exception.
--no-pprint
    Disable auto pretty printing of results.
--no-banner
    Don't display a banner upon starting IPython.
--profile=<Unicode> (BaseIPythonApplication.profile)
    Default: u'default'
    The IPython profile to use.
--pylab=<CaselessStrEnum> (InteractiveShellApp.pylab)
    Default: None
    Choices: ['auto', 'gtk', 'inline', 'osx', 'qt', 'qt4', 'tk', 'wx']
    Pre-load matplotlib and numpy for interactive use, selecting a particular
    matplotlib backend and loop integration.
--matplotlib=<CaselessStrEnum> (InteractiveShellApp.matplotlib)
    Default: None
    Choices: ['auto', 'gtk', 'inline', 'osx', 'qt', 'qt4', 'tk', 'wx']
    Configure matplotlib for interactive use with the default matplotlib
    backend.
--colors=<CaselessStrEnum> (InteractiveShell.colors)
    Default: 'Linux'
    Choices: ('NoColor', 'LightBG', 'Linux')
    Set the color scheme (NoColor, Linux, or LightBG).
--cache-size=<Integer> (InteractiveShell.cache_size)
    Default: 1000
    Set the size of the output cache.  The default is 1000, you can change it
    permanently in your config file.  Setting it to 0 completely disables the
    caching system, and the minimum value accepted is 20 (if you provide a value
    less than 20, it is reset to 0 and a warning is issued).  This limit is
    defined because otherwise you'll spend more time re-flushing a too small
    cache than working
--logfile=<Unicode> (InteractiveShell.logfile)
    Default: ''
    The name of the logfile to use.
--profile-dir=<Unicode> (ProfileDir.location)
    Default: u''
    Set the profile location directly. This overrides the logic used by the
    `profile` option.
-c <Unicode> (InteractiveShellApp.code_to_run)
    Default: ''
    Execute the given command string.
--autocall=<Enum> (InteractiveShell.autocall)
    Default: 0
    Choices: (0, 1, 2)
    Make IPython automat[TerminalIPythonApp] CRITICAL | Bad config encountered during initialization:
[TerminalIPythonApp] CRITICAL | Unrecognized flag: '-u'
ically call any callable object even if you didn't type
    explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
    The value can be '0' to disable the feature, '1' for 'smart' autocall, where
    it is not applied if there are no more arguments on the line, and '2' for
    'full' autocall, where all callable objects are automatically called (even
    if no arguments are present).
--ipython-dir=<Unicode> (BaseIPythonApplication.ipython_dir)
    Default: u'/home/abcat/.config/ipython'
    The name of the IPython directory. This directory is used for logging
    configuration (through profiles), history storage, etc. The default is
    usually $HOME/.ipython. This options can also be specified through the
    environment variable IPYTHONDIR.
--gui=<CaselessStrEnum> (InteractiveShellApp.gui)
    Default: None
    Choices: ('glut', 'gtk', 'gtk3', 'none', 'osx', 'pyglet', 'qt', 'qt4', 'tk', 'wx')
    Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3',
    'none', 'osx', 'pyglet', 'qt', 'qt4', 'tk', 'wx').
--logappend=<Unicode> (InteractiveShell.logappend)
    Default: ''
    Start logging to the given file in append mode.
-m <Unicode> (InteractiveShellApp.module_to_run)
    Default: ''
    Run the module as a script.
--log-level=<Enum> (Application.log_level)
    Default: 30
    Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL')
    Set the log level by value or name.
--ext=<Unicode> (InteractiveShellApp.extra_extension)
    Default: ''
    dotted module name of an IPython extension to load.
--config=<Unicode> (BaseIPythonApplication.extra_config_file)
    Default: u''
    Path to an extra config file to load.
    If specified, load this config file in addition to any other IPython config.

To see all available configurables, use `--help-all`

Examples
--------

    ipython --matplotlib       # enable matplotlib integration
    ipython --matplotlib=qt    # enable matplotlib integration with qt4 backend
   
    ipython --log-level=DEBUG  # set logging to DEBUG
    ipython --profile=foo      # start with profile foo
   
    ipython qtconsole          # start the qtconsole GUI application
    ipython help qtconsole     # show the help for the qtconsole subcmd
   
    ipython console            # start the terminal-based console application
    ipython help console       # show the help for the console subcmd
   
    ipython notebook           # start the IPython notebook
    ipython help notebook      # show the help for the notebook subcmd
   
    ipython profile create foo # create profile foo w/ default config files
    ipython help profile       # show the help for the profile subcmd
   
    ipython locate             # print the path to the IPython directory
    ipython locate profile foo # print the path to the directory for profile `foo`
   
    ipython nbconvert           # convert notebooks to/from other formats


--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
pchen | 14 Mar 15:19 2014

Cursor "back to" navigation

Does Spyder have cursor rewinding? For example, I would want to make edits 
in function A, select "Go to definition" to go to function B, and then 
return to function A. This would be the Alt-Left shortcut in Eclipse. 

Jonno | 13 Mar 17:30 2014
Picon

Object Inspector formatting beyond docstring

The object inspector seems to do some formatting based on an object's definition beyond what is in the docstring.
For example if I view numpy.add() in the object inspector it shows add in a blue title bar, Definition: & Type: Function which aren't part of the docstring.
Is there some documentation explaining what happens?


--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Brent Robbins | 12 Mar 20:32 2014
Picon

Viewing Instance Attribute Values

Hello!
 
Is there a way to view instance attribute values?  For instance, if I make the class:
 
class MyClass():

def __init__(self,a,b,c):

self.d = a

self.e = b

self.f = c

TestInstance = MyClass(1,2,3)

 

 

Is there a way I can view (via a gui) that TestInstance.e = 2?  Or do I have to type out "print TestInstance.e"?

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
SN1984jm | 12 Mar 18:13 2014
Picon

Export Spyder configuration to different machine

Hi,

Over time I configured my Spyder version on one pc just the way I like it, and now I would like to install Spyder somewhere else with the same settings.
Is there a way to export configurations like syntax highlighting, background colours and fonts?

I'm using Linux (Kubuntu) and Spyder v2.2.1.

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
wxwacker32 | 11 Mar 00:19 2014
Picon

Re: clear shell command



Am Freitag, 19. März 2010 11:39:02 UTC+1 schrieb Duim:
First of all: I really like Spyder and use it all the time.

question: Is there a command within Spyder to clear the shell and the
workspace?

If you want to clear the shell in order to avoid confusing different outputs you can use something like print('n'*1000)  in your script as shorter yet less elegant alternative to the os.system call.
Altertanively you could use an Ipython console which features numbered outputs.

Restarting the Python Interpreter will reset both shell and workspace.
So what about a "Clear Console" option in the "Interactive console" menu similar to the Clear button of GIMP's Python console?


--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Arno Uhlig | 10 Mar 17:06 2014
Picon

PySide.QtGui ImportError

Hello.
I'm using Spyder 2.2.5, Python 2.7.5, Qt 4.8.4 (all 32bit) on an Win 8.1 64bit PC.
After installing PySide 1.2.1 (32bit, too) without any error I cannot import the QtGui-Module from the PySidePackage in Spyder.
It throws this: "ImportError: DLL load failed: The specified procedure could not be found. "
But I'm able to import PySide.QtCore.

This does not happen with other editors (or with a simple cmd-line) or when I'm using Win 7 64bit.

Can someone provides help or hints on this problem? It appears to be Spyder specific.


Best regards.

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
dhf | 10 Mar 00:19 2014
Picon

Overwrote a main program when i saved, is there a way to recover? (no b/u)

Hello,
I acceidently over wrote a file i was working on, which appreantly is not 
do hard to do in Spyder. Is there a way to recover?
Thanks
Dan

Roberto Rosati | 9 Mar 20:37 2014
Picon

Memory usage check in Windows ?

Hello all,
I'm really a newbie - I'm a molecular biologist, not a programmer. I hope I'm not making a fool of myself, but yesterday I switched to Python 3.3 and reinstalled Spyder (2.3.0beta3), and opening an Internal console window, noticed an error caused by the system.py script.
Being curious, today I decided to ask around on Stackoverflow, and *if* this is really a bug, I might have come up with a solution. Would you please review the thread and check if it's worth of anything for the next release?

http://stackoverflow.com/questions/22286622/trying-to-understand-an-error-wintypes-structure

Thank you!

Roberto Rosati

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Srinivasan Rajaraman | 7 Mar 17:35 2014
Picon

IPython console is inactive in Spyder 2.2.5

Hi,

I am a new user of Spyder. I have Spyder 2.2.5 on Python 2.7.5 64 bits, Qt 4.8.4, PySide 1.2.1 on Windows.

For some reason, when I click on the IPython Console, the whole console area is grayed out and I can't type anything in that.

I'd appreciate you help.

Srini

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Gmane