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.
Sylvain Corlay | 5 Mar 21:24 2014
Picon

Run code at startup in IPython console

In the current preference dialog, in the "IPython console" tab, there is a possibility to run several lines of codes, separated with commas (btw, why not semi-columns). 
How about we provide a real text-edit widget for this? I am interested to know if there is any reason not to do it, otherwise, I would be happy to help and make a PR. 
S. 

--
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/groups/opt_out.
Neil | 3 Mar 20:49 2014
Picon

Recovering workspace data

I am new to Python and Spyder and need some help figuring out how to retrieve my workspace data (existing local variables) when a Spyder python console session gets terminated unexpectedly.

For example, when running PyQt code from command like I frequently forget to start an instance of QApplication which invariably generates an error that causes the console session to terminate. When this occurs I also lose all existing data in variable explorer. I haven't been able to figure out how to get into debug mode or some other way to get back to this session so that I can recover data present prior to the session being killed. I am using Spyder packaged with the latest PythonXY.

Thanks for any assistance.




--
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/groups/opt_out.
William Gardiner | 3 Mar 18:49 2014
Picon

Re: clear shell command

from http://scientificcomputingco.blogspot.com/2013/10/python-spyder-clear-workspaceshell.html
add the following to C:/Python27/Lib/site-packages/spyderlib/scientific_startup.py (I inserted it at the end of the file)

#==================
# clear functions from http://scientificcomputingco.blogspot.com/2013/10/python-spyder-clear-workspaceshell.html
#===================
def clear():
        '''Clears the shell of the spyder application
        Use either clear() or cls()'''
        os.system('cls')
        return None
cls = clear

def clear_all():
    '''Clears all the variables from the workspace of the spyder application.'''
    cls()
    gl = globals().copy()
    for var in gl:
        if var[0] == '_': continue
        if 'func' in str(globals()[var]): continue
        if 'module' in str(globals()[var]): continue

        del globals()[var]

setscientific()
del setscientific
clear_all()
print 'Type "scientific" for more details.'

I'm getting an error saying that setscientific() is not defined though when I start spyder and an error saying "The system cannot find the path specified" when I run the clear_all() command.
But it seems to work regardless, clears all the variables from the Variable Explorer.


On Tuesday, March 23, 2010 7:11:49 AM UTC-7, Duim wrote:
ok, thank you.

There isn't a command which I can use in my python script?

I would like the same for a "clear workspace"

Reason I'm asking is that I'm using Spyder often like I used to use
Matlab and I'm looking for the same thing as matlab functions "clear
all" and "clc".

On Mar 21, 11:14 am, Pierre Raybaut <pierre.rayb...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> In "Interactive console" menu: click on "Restart Python interpreter".
>
> Cheers,
> Pierre
>
> On Mar 19, 11:39 am, Duim <bauketi...-Re5JQEeQqe8@public.gmane.orgm> wrote:
>
> > 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?
>
>

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
Michal Galdzicki | 1 Mar 05:23 2014
Picon

How to change the default home path for Open/ Save as?

Currently the default path that Open and Save as buttons use is the 'USERPROFILE' env variable. Where in the code base is this default set? Is there a place I could specify a path for users by default on a fresh install. For example, I would like to have my users default Spyder directory to be in ~/Documents/SpyderFiles/.

thanks for any help in this direction,
mike

 

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
Michal Galdzicki | 28 Feb 00:23 2014
Picon

console (tab) selection on default startup

Currently the ipython console (tab) is the active tab by default on startup.
What/ where is there control over the default tab which is selected for the consoles on startup?  I would like to have the regular python console tab be active instead of ipython.
I'm looking for any solution which I can do temporarily in my custom installer. Of course I would recommend this for the overall default, but that's secondary.

I'm working with 88f93ae (current tip) and running dist utils to make the installer.
thanks,
mike

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
Andreas | 27 Feb 19:06 2014
Picon

Memory and CPU usage is not displayed

Hi everyone,

I was wondering how I could get the CPU and Memory display on the bottom 
right of spyder to work. Does anyone know.

Thanks in advance
Andreas

DrBwts | 22 Feb 14:09 2014
Picon

Help installing CGAL bindings

Hi,

I have downloaded CGAL bindings for python. In the read me doc it says all I need to do is add the path to the CGAL folder to the PYTHONPATH environment variable.

BUT when I look at the environment variables PYTHONPATH isnt there?

I'm using Windows 7, Python (x,y) with Python 2.7.3.1 & Spyder - light

Can anyone point me in the right direction?

Thanks

Nic

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
Nathan M | 22 Feb 13:27 2014
Picon

non blocking widget that can issue commands to IPython

Spyder running python 2.7.x on windows 7.  I have a set of functions which move pylab.fgure() objects around the screen (I work with up to 70 figures, each with many subplots at the same time and have three monitors so its rather useful not to have to drag things around the screen, especially the ability to close the last x plots or put the last x plots on either the top/bottom row of one/all monitors) anyways, im new to Qt4 and have just got through some of the examples (can create a widget with a text box and button etc but thats about it).  Two aspects of functionality I cant see how to implement, 

1. Ability to issue commands to IPython i.e. I would like the widget to be able to call a function in the main IPython command prompt when a button is pressed.
2. Non blocking, by this I mean I would like to be able to issue my own IPython commands while the widget is active.

I guess 2 can be done with a thread but what should I look up (even better are there any examples I can look at), 1 is probably a specific command like getting a handle to the IPython window and passing a text string to the command prompt but again what do I look up and are there any basic examples?

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
Kevin | 21 Feb 21:19 2014
Picon

Copy-paste function in file explorer (Linux)?

Hello,

I am a Linux user and I really like spyder. One simple functionality that I wish it would incorporate: "copy" and "paste" options on the right-click context menu in the file explorer pane. I would like to quickly & easily make duplicates of scripts for when I need to try something crazy without losing my original code. This would also be very useful for posting questions to Stack Overflow, where it is important to "strip down" code to its smallest reproducible form when asking for help from others about bugs.

I know I can open a file in the editor and then do a save-as, but this requires more clicking. Also, I just submitted a bug report about Spyder having trouble opening non-Python file extensions. Unfortunately that bug actually prevents me from doing an open / save-as with non-Python files, and sometimes that would be very handy.

As it is, I need to keep an instance of both Gedit and Nemo running alongside Spyder so that I can perform quick file copying, viewing, etc. It would be great if I could do everything I needed within Spyder. :-)

In case it is relevant, here's the information on my system:

Spyder Version:  2.3.0beta3
Python Version:  2.7.5+
Qt Version    :  4.8.4, PyQt4 (API v1) 4.10.3 on Linux
pyflakes >=0.5.0:  None (NOK)
pep8 >=0.6      :  None (NOK)
IPython >=0.13  :  0.13.2 (OK)
sphinx >=0.6.6  :  None (NOK)
rope >=0.9.2    :  None (NOK)
matplotlib >=1.0:  1.2.1 (OK)
pylint >=0.25   :  None (NOK)

Best regards
Kevin

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
Hrishi Chandanpurkar | 18 Feb 23:19 2014
Picon

'Open in Finder' for files in File Explorer?

Hi,

I have a suggestion, not knowing where to post, I'm posting it here. File Explorer of spyder is very functional and I use it regularly. I was wondering if an option 'Open in Finder' can be added to it on right clicking on a file. By Finder I also mean file management app on Windows and Linux.

Thanks,
hrishi

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.

Gmane