Ronan Paixão | 22 Jan 15:28 2015
Picon

Ctrl+Tab behavior

Hi all,

I'd like to talk about the behavior of Ctrl+Tab, that has been bugging me for some time. I didn't make a change+PR because I don't know if it's a bug or a feature :-)

In Spyder, if you hit Ctrl+Tab you go to the previous tab, which is fine. However, if one releases the Ctrl and then press Ctrl+Tab again, you go to the second-previous tab to the first tab, not to the first tab itself, which should be (in my opinion) the "new previous" tab.

That is contrary to most editors and if working with two tabs (very usual case), I keep having to think if the second tab is forward or backward, to choose Ctrl+Tab or Ctrl+Shift+Tab. This is very tiring for me, since usually I just press Ctrl+Tab and see if I get the wrong tab, then I have to press Ctrl+Shift+Tab+Tab. It is tiring specially because this combination isn't really easy to press (just think of how to position your hand to press those 3 keys).

So, I ask: should that be fixed? It's probably just a matter of pulling the last tab to the top of the stack when releasing Ctrl.

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

Numpy/Array Editor (and consoles?) Helper

Hi all

So I was curious about the latest "idea" on aiding array input in spyder in the Editor and I gave it a quick go. I moved the thread here, so that the other one (where this started) can remain for the original purpose.

Now, back to the Numpy/Array/Matrix helper.

You can check the work here:

If you want to try it:

cd spyder-array
hg pull && hg update array
python bootstrap.py

The idea is still on the drawing board but it works like this.

The "numpy array helper" gets called in the editor with Control+M. 
A small dialog appears in the cursor position and you can enter either a Matrix or an Array in simplified (Matlab?) format.

If you hit enter, it transforms (reformats) the text to become an array. If you hit control enter, it will reformat to handle the matrix case. I removed extra spaces, and handle the case of including or not brackets....

so...

Case 1.)
[1 2;3 2]  or  [1   2  ;  3 2] or 1 2;3 2 or 1 2;   3    2     Enter will produce

np.array([[1, 2], [3, 2]])

Case 2.)
[1 2;3 2]  or  [1   2  ;  3 2] or 1 2;3 2 or 1 2;   3    2     Control+Enter will produce

np.matrix([[1, 2], [3, 2]])

I am not checking if it is a valid array or matrix, just playing with the string and parsing it. It only produces 2D arrays/matrices... but I guess it could be extended further

Notes:
  • I am not checking if it is a valid array or matrix, just playing with the string and parsing it. It only produces 2D arrays/matrices... but I guess it could be extended further
  • If the box is empty when you hit enter it does nothing
  • This is for now only being triggered in the editor with a python script

Let me know how it feels :)

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.
firstluluman | 19 Jan 17:00 2015
Picon

Spyder 2.3.2-py2.7 can not use Canopy as interpreter

I was trying to use spyder 2.3.2-py2.7 as python editor while canopy as interpreter. But it didn't work.
Is there some one who can help me? Thanks.
My system is Yosemite 10.10.1
Spyder 2.3.2-py2.7
Canopy  1.5.1.2730 (64)
canopy interpreter path:/Users/$$/Library/Enthought/Canopy_64bit/User/bin/ipython2

The internal console gives thus error:
---------------------------------------------------------------------------------------
This console is used to report application
internal errors and to inspect Spyder
internals with the following commands:
  spy.app, spy.window, dir(spy)

Please don't use it to run your code

>>> Traceback (most recent call last):
  File "/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/spyderlib/plugins/externalconsole.py", line 416, in python_executable_changed
    self.warn_python_compatibility(pyexec)
  File "/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/spyderlib/plugins/externalconsole.py", line 436, in warn_python_compatibility
    console_version = int(process.communicate()[0])
ValueError: invalid literal for int() with base 10: ''
------------------------------------------------------------------------------------------

It seems the startup script is not correct.?

--
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.
Jacky | 17 Jan 05:53 2015
Picon

window lose focus when using easygui or tkinter

Hey, guys, I use easygui or tkinter to read some file or input for my python program. But when I run it in spyder2.3, the gui window just pop out behind spyder main window, which is kind of annoy for me. I must use alt+tab to switch window each time I run scripts. When I use IDLE to run, there is no such problem. Same problem happens even when I use spyder light (in pythonxy 2.7.9.0).

Any ideas to solve this?

--
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.
jj | 15 Jan 20:56 2015
Picon

remote kernel on AWS

Hi all,

I need some help connecting to an ipython kernel that is running on an AWS instance.  Here's the basic architecture.

JUMP is a public AWS instance that I can ssh into directly
DEV is a private AWS instance that I can tunnel into via JUMP
LOCAL is my client machine

DEV has ipython notebook server running and is listening on port 8888.

I have setup an ssh tunnel using the following command from LOCAL:

ssh -L 8888:DEV:8888 myusername <at> -N

I can confirm that ipython notebook server works by pointing my browser to http://localhost:8888/ which does indeed pull up ipython notebook.
However, when I try to point Spyder to the remote kernel, it doesn't work.  I've tried using DEV's json file for the kernel, that just produces an error.  I've tried leaving the "connection info" field blank and used localhost:8888 as the "Host name" under the "This is a remote kernel" checkbox.  Using the json file gives me a console error ("ValueError: No JSON object could be decoded").  Using "remote kernel" just leaves Spyder with a spinning beach ball (I'm on a mac). 

Can anyone tell me what I'm doing wrong?  Thanks.

P.S. I'm using Spyer 2.3.2 with Python 2.7.8

--
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.
Cesar | 13 Jan 17:09 2015
Picon

Installing PDF miner

Hi, I am extremely new to Python. I am trying to use PDF miner to extract information from a PDF, however most of the documentation I have found breefly describes how to install PDF miner in Python, I guess the command should be the same when using the spyder environment, however it does not seem to work. So far I have downloaded the PDF miner file but do not know how to install it, any help would be appreciated

--
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.
Jonatan Hjul | 13 Jan 10:13 2015
Picon

Error after upgrading, encoding issue....

I start getting the following traceback if I run a script containing an error in a new console. It started after upgrading to the latest spyder version.

This is only happening on my windows 7 machine running python 2.7 (the same version runs fine on linux).

I have tried to reinstall and reset spyder - but that does not help....

It seems to be an encoding issue. Source is in UTF-8.

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\pythonshell.py", line 566, in write_error
    self.shell.write_error(self.get_stderr())
  File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\baseshell.py", line 272, in get_stderr
    return self.transcode(qba)
  File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\baseshell.py", line 258, in transcode
    return to_text_string(qba.data(), 'utf8')
  File "C:\Python27\lib\site-packages\spyderlib\py3compat.py", line 134, in to_text_string
    return unicode(obj, encoding)
  File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf8 in position 93: invalid start byte

--
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.
Chris | 11 Jan 17:40 2015
Picon

how to enable sphinx extensions in object inspector

I want to use the Napoleon extension for Sphinx so that Spyder's object inspector will display google style docstrings correctly (without it, multiple lines are rendered as one line). It should just work by editing the Sphinx conf.py file. I'm using the Anaconda distribution, so I tried editing \Anaconda\Lib\site-packages\spyderlib\utils\inspector\conf.py file with:
extensions.append('sphinx.ext.autodoc')
extensions
.append('sphinxcontrib.napoleon')
and restarting Spyder, but it doesn't seem to affect anything. How can I enable this extension?

--
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.
Richard Johns | 10 Jan 23:41 2015
Picon

Spyder3

I was wondering what the status of Spyder3 is?
It was necessary to install python3-pyqt4 or python3-pyside to get it to work for me.
Is it possible to open an ipython/ipython3 console in Spyder3 other than via the terminal?
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.
Alexey Orlov | 10 Jan 12:59 2015
Picon

Editor: enable 'Go to definition'

Hi,

How am I supposed to enable this menu item?

Carlos Córdoba | 8 Jan 22:33 2015
Picon

Re: [spyder] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع

Sorry for the spam, I changed the permissions of this guy

Cheers,
Carlos

El 08/01/15 a las 16:29, basher as escribió:


 

YouTube videos of

 

 U.S. Congress money laundering hearing


of

Saudi Billionaire  " Maan  Al sanea"

 with bank of America


and  The  owner of Saad Hospital and  Schools

 in the Eastern Province in Saudi Arabia

 

and the Chairman of the Board of Directors of Awal Bank  in Bahrain


With Arabic Subtitles


http://www.youtube.com/watch?v=mIBNnQvhU8s

 

 

موقع اليوتيوب الذي عرض جلسة استماع الكونجرس الأمريكي

 لمتابعة نشاطات غسل الأموال ونشاطات

 

السعودي معن عبدالواحد الصانع

 

مالك مستشفى  وشركة سعد  ومدارس سعد بالمنطقة الشرقية بالسعودية   ورئيس مجلس ادارة بنك اوال البحريني

 

مترجم باللغة العربية

 

http://www.youtube.com/watch?v=mIBNnQvhU8s

 






























































--
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 <at> googlegroups.com.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

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