matt | 19 Dec 18:50 2014
Picon

Is Spyder debug broken

I hadn't had to use the debug functionality inside Spyder for quite a while.  Today when I tried to debug, Spyder pops up an open file dialog.  Also, every time I type s, c, or whatever into the running debugger terminal Spyder pops up another open file dialog.  I am on the most recent commit from https://bitbucket.org/spyder-ide/spyderlib.  Has nobody else seen this problem?

--
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.
Lei | 19 Dec 18:05 2014
Picon

Problems about exec and try-except

Hi experts,

I want got a py-file named as try.py

The content is

--------------------------------

import sys


def cal(init_code):

    try:

        exec(init_code)

    except:

        print('OMG')

    try:

        if 'A0=' not in init_code:

            print('OMG')

            A0=A

            print('A0=',A0)

    except NameError as e:

        print(e)


init_code = ''

for statement in sys.argv[1:]:

    init_code += statement + '\n'


cal(init_code)

--------------------------------


When I run it via command line in Spyder, IPython console, (I am using python 3.4)

I got error:

--------------------------------------------------------

In[1]: !python try.py A=10 p=5 n=730

OMG

name 'A' is not defined

--------------------------------------------------------

My idea is that the first try does not work porperly. Because in the second try, the code "print('OMG')" works. But the code "A0=A" does not work.

Could you please help me with this?

Thanks in advance!

--
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.
Lei | 19 Dec 12:25 2014
Picon

how to print a list on one horizontal line, in python 3

Hi experts,

I am using python 3. 

I wrote in IPython console in Spyder

for elem in [10, 20, 25, 27, 28.5]:

    print(elem),


But the results are


10

20

25

27

28.5


As I learned, the comma in the syntax "print(elem)," will prevent the use of newline character. Why does it not work here?

How can I make the results in one line? Like


10 20 25 27 28.5


I know I can use 

print([elem for elem in [10, 20, 25, 27, 28.5]])


and I get
[10, 20, 25, 27, 28.5]

But this is not something I want. What I want is, with the first codes, why the results are in vertical line, even with the comma?

Thanks!


--
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.
Adrian Klaver | 18 Dec 19:57 2014

Moderation

I make a motion that this list become un-moderated. The current set up 
really slows down the flow of information. I belong to many mailing 
lists of which this is one of only two that are moderated. I do not see 
any bad behavior on the other lists, so I am sure lack of a moderator 
will not be an issue here either.

Thanks,
--

-- 
Adrian Klaver
adrian.klaver@...

Lei | 18 Dec 17:37 2014
Picon

command line to use a module

Hi experts,

I am using python 3. I got a module interest.py (see attachment).

But when I tried to use this module with input in the command line, it gives error

In [1]: import interest

In [2]: interest.py A=10 p=5 n=730
  File "<ipython-input-2-82892ebb874e>", line 1
    interest.py A=10 p=5 n=730
                ^
SyntaxError: invalid syntax

May you please tell me how to solve it?

This file "interest.py" is in the path of desktop. I think it is not a default path for Spyder. So I added its path via "Tools" --> "PYTHONPATH manager". Is it correct?

By the way, I am using IPython in Spyder (version, 2.3.2), my computer is running Windows 7.

Thanks a lot.

--
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.
Attachment (interest.py): text/x-python, 2797 bytes
statmobile | 17 Dec 21:45 2014
Picon

OS X scimath module for Python 3.4

For the Python 3.4 OS X release, the iPython console just hangs when I open up Spyder using the built-in python.

When I point Spyder to my virtual environment it keeps crashing looking for the scimath module, but I can't seem to pip install scimath, because they don't seem to be Python 3 compatible due to the use of the now deprecated execfile() function in its setup.

Does anybody else seem to experience this?

Do I really need scimath, if not, where can I fix this in the PYTHONSTARTUP script?

--
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.
Mark T | 16 Dec 18:42 2014
Picon
Picon

Unable to change my email address in this group

Please provide instructions on how I can change my email address for this 
group. I did follow the Google groups instructions on this but I could find 
no way enter my new email address.

Jonatan Hjul | 15 Dec 22:33 2014
Picon

A "greek" toolbar?

I have just installed python3 on one of my machines to experiment a bit.

One of the great things about python3 is support for unicode variables, so we can now define some diameter as ø = 3 or the standard deviation as σ = 3.5. Now we definitely have a lot of strange symbols on different keyboards, but I guess most people using spyder is familiar with greek letters.

So maybe a greek toolbar would be useful in the python3 version?

And maybe we should have a shortcuts like ctrl+g to convert from latin to greek letters like in mathcad (i.e. "s" followed by ctrl+g results in
"σ").

In the python2 version it could be disabled or just convert to "sigma".

What do you think?

/Jonatan

--
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 | 15 Dec 01:41 2014
Picon

The '%clear' command is not implemented correctly in Spyder's interpreter

Hi,

I am new to using Spyder.  I am now using Spyder 2.3.1 version.  When I type "scientific" in Spyder, it says the following:

Within Spyder, this interpreter also provides:
    * special commands (e.g. %ls, %pwd, %clear)
    * system commands, i.e. all commands starting with '!' are subprocessed
      (e.g. !dir on Windows or !ls on Linux, and so on)

However, %clear command does not work correctly.  I get the following:

>>> %clear
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Sripa\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 648, in evalsc
    raise NotImplementedError("Unsupported command: '%s'" % command)
NotImplementedError: Unsupported command: 'clear'

 Could somebody tell me if my Spyder implementation in incorrect?  If not, what is missing?

Regards,
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.
Picon

Upcoming matrix multiplication operator on python 3.5

Just wondering around the net I stumbled upon this talk by Guido

https://www.youtube.com/watch?v=0Ef9GudbxXY

where he mentioned the upcoming addition of a matrix multiplication operator on the road for Python 3.5

http://legacy.python.org/dev/peps/pep-0465/

Pretty neat stuff!

--
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.
Picon

How to get more people to use spyder?

Hi guys, I have been discussing with some lecturers in my institute on how to go on moving more people over python and spyder to improve our students workflows and I was wondering what steps we should be taking to further boost the adoption of spyder.

There was some talk on other threads on maybe making a proper website and improving it, including social media (twitter), improve documentation and tutorials (via youtube/ vimeo) etc...

I know a lot of us use spyder and will most likely keep using it on years to come (hopefully :) ) but I cant help but notice that in all pydata/**enter_name_of_python_ conferece_here** you see always ipython notebooks as the main material/tool, and spyder seems to be forgotten along the way. With the inclusion of ipython nb editor inside spyder this situation could improve, but how could we tackle this issue?

I know spyder is by definition a scientific development environment (ala Matlab), but is there something that we could do to perhaps enhance this use? is someone outhere using spyder for webdev? django etc...? why not? what would make it more usable to this users? 

I bring webdev, because I am finding myself more and more often thinking and trying to develop (not yet developing anything serious) web services/backends (django...) for apps in plans, that are also part of data science and my scientific workflow.

I would like to hear your thoughts on this. 

Cheers

--
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