Dylan Bay | 12 Nov 09:28 2015
Picon

Keyboard shortcut to switch tabs/scripts?

I’ve looked online in a few places, but I just can’t seem to find anything that lets me swap tabs in the main window in Spyder other than the CMD-E, which isn’t actually a shortcut at all if you’ve got less than ten open scripts (99% of the time). I’m on a Macbook Air, OS 10.9 Mavericks. I also tried CMD and/or CTL-PageUp/PageDown, but since I don’t have the physical key, the Fn-Arrowkey combo nor the mouse buttons that double for that works either.

Seems like a pretty major feature to have missing? I’m accustomed to swapping tabs in, for example, Safari or Chrome via CTL-TAB just like I am swapping apps with CMD-TAB (Alt-tab for you Windows people), and it would save lots of time.

Anyone know if it’s a feature or what the keyboard shortcut would be?

Many 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.
Tamen J | 2 Nov 03:48 2015
Picon

Syntax problem

Hi guys, when i first downloaded the spyder editor for python the mac first asked if i wanted to install commands with it, i stupidly pressed no and now whatever I try to do on spyder it says it hasn't got the syntax. Does anyone know where I can download all this from or how to fix the problem?

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.
Xaver Gerster | 1 Nov 16:47 2015
Picon

Connecting to kernel fails

Hi,


since two days, my spyder ide does not connect to a kernel anymore?


When I start spyder, the IPython console shows "Connecting to kernel ...." and gets stuck on that


When I look into the console, it says:

'import sitecustomize' failed; use -v for traceback
NOTE: When using the ipython kernel entry point, Ctrl-C will not work.

To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.

To read more about this, see ipython/ipython#2049


I have no idea if the preceding is related to the issue. Any help would be most appreciated! Thank you.


1) the system this occurs on is linux openSUSE 13.1 (x86_64), version = 13.1, codename = Bottle, kernel 3.11.10-29-desktop

2) running ipython in a terminal I have: Python 2.7.6, IPython 3.2.1

3) Spyder's version is Spyder 2.3.7. This is from Tue 06 Oct 2015 / installed Oct. 11. Since then Spyder has been used without issues until ~2 days ago.

4) the issue is not user-specific. Setting up a fresh default user with non-existent ~/.ipython and non-existent ~/.spyder and invoking spyder for its first time for this user will produce the same issue

5) 'other' ipython dev-tools, like ipython's-browser notebook work without problems

6) I don't know if this is of any help, but I have attached a figure showing the update history of the system for the last ~10 days, only related to potential python stuff, i.e. the output of tail -200 /var/log/zypp/history | grep insta | grep py


2015-10-22 13:35:58|install|python-numpy-doc-html|1.10.1-118.1|noarch             
2015-10-22 15:42:57|install|python-matplotlib|1.4.3-97.37|x86_64                  
2015-10-22 15:42:58|install|python-tornado|4.2.1-5.1|x86_64                       
2015-10-22 15:42:58|install|python-matplotlib-wx|1.4.3-97.37|x86_64               
2015-10-22 15:42:58|install|python-matplotlib-tk|1.4.3-97.37|x86_64               
2015-10-22 15:42:58|install|python-matplotlib-qt-shared|1.4.3-97.37|x86_64        
2015-10-22 15:42:58|install|python-matplotlib-qt4|1.4.3-97.37|x86_64              
2015-10-22 15:42:58|install|python-matplotlib-designer|1.4.3-97.37|x86_64         
2015-10-26 20:52:37|install|python-PyVTK|0.4.85-1.1|noarch                        
2015-10-26 20:52:37|install|python-evtk|0.2.0-1.11|x86_64                         
# 2015-10-28 21:24:02 python-Pillow-3.0.0-44.1.x86_64.rpm installed ok
2015-10-28 21:24:02|install|python-Pillow|3.0.0-44.1|x86_64                       
2015-10-28 21:24:02|install|python-SPARQLWrapper|1.6.4-7.69|noarch                
2015-10-28 21:24:03|install|python-jsonschema|2.5.1-30.1|noarch                   
2015-10-28 21:24:03|install|python-numpy-doc-html|1.10.1-118.2|noarch             
2015-10-28 21:24:03|install|python-pyasn1|0.1.9-49.2|noarch                       
2015-10-28 21:24:04|install|python-pycurl|7.19.5.1-39.48|x86_64                   
2015-10-28 21:24:04|install|python-pyserial|2.7-23.98|noarch                      
2015-10-28 21:24:04|install|python-pytz|2015.6-44.1|noarch                        
2015-10-28 21:24:04|install|python-setuptools|18.4-70.1|noarch                    
2015-10-28 21:24:04|install|python-cryptography|1.0-26.1|x86_64                   
# 2015-10-28 21:24:05 python-Twisted-15.4.0-49.1.x86_64.rpm installed ok
2015-10-28 21:24:05|install|python-Twisted|15.4.0-49.1|x86_64                     
2015-10-28 21:24:08|install|python-matplotlib|1.4.3-97.38|x86_64                  
2015-10-28 21:24:08|install|python-pip|7.1.2-1.3|noarch                           
2015-10-28 21:24:08|install|python-matplotlib-wx|1.4.3-97.38|x86_64               
2015-10-28 21:24:08|install|python-matplotlib-tk|1.4.3-97.38|x86_64               
2015-10-28 21:24:08|install|python-matplotlib-qt-shared|1.4.3-97.38|x86_64        
2015-10-28 21:24:08|install|python-matplotlib-qt4|1.4.3-97.38|x86_64              
2015-10-28 21:24:09|install|python-matplotlib-designer|1.4.3-97.38|x86_64         
2015-10-31 22:37:15|install|python-scipy|0.16.1-53.1|x86_64                       
2015-10-31 22:37:16|install|python-scipy-weave|0.16.1-53.1|x86_64                 
2015-10-31 22:37:16|install|python-scikits-umfpack|0.0.svn20110403-3.45|x86_64    
2015-10-31 22:37:16|install|python-brian|1.4.1-5.70|x86_64                        
2015-10-31 22:37:16|install|python-brian-weave|1.4.1-5.70|x86_64                  
2015-10-31 22:39:20|install|python-Cycler|0.9.0-1.1|noarch|                       
2015-10-31 22:39:21|install|libshiboken-python2_7-1_2|1.2.4-29.1|x86_64           
2015-10-31 22:39:21|install|python-numpy-doc-html|1.10.1-118.5|noarch             
2015-10-31 22:39:25|install|python-matplotlib|1.5.0-99.3|x86_64                   
2015-10-31 22:39:25|install|python-pyside|1.2.4-16.1|x86_64                       
2015-10-31 22:39:25|install|python-matplotlib-wx|1.5.0-99.3|x86_64                
2015-10-31 22:39:25|install|python-matplotlib-tk|1.5.0-99.3|x86_64                
2015-10-31 22:39:25|install|python-matplotlib-qt-shared|1.5.0-99.3|x86_64         
2015-10-31 22:39:26|install|python-matplotlib-qt4|1.5.0-99.3|x86_64               
2015-10-31 22:39:26|install|python-matplotlib-designer|1.5.0-99.3|x86_64          
2015-10-31 23:27:51|install|python-pyzmq|14.7.0-59.2|x86_64                       

--
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 <at> googlegroups.com.
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.
Sybs ALHABSHI | 29 Oct 12:51 2015
Picon

Spyder : Inserting an accentuated character

Hello,

I'm on Debian, i386, Spyder's python version is 2.7.  (Still haven't figured out how to get Python 3.4 or later working)

My problem is inserting characters in french in code comments. With most other programs I'm using, I only have to type "Ctrl+Shift+0153" for example to get the letter "œ" on the page, exactly as I have done writing this caracter here. Up till now, I wrote my comments in gedit, then copy-paste it in the comments when I need to insert special characters.

What can I do to get the "Ctrl+Shift+0153" method working ?

Thanks for any hints.


--
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.
Gerard Cuomo | 28 Oct 14:31 2015
Picon

Can't Save

I'm sure this is a very silly, newb question. Forgiveness please.  

For some reason, recently, I can't save my project.  The 'save' and 'save all' buttons are grayed-out.  I can 'save as' a new file, which is what I've been doing in the meantime.

There is probably some simple reason for my little dilemma.   Any ideas?

--
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.
Sayth Renshaw | 26 Oct 03:57 2015
Picon
Gravatar

Easy Way to switch Environments in Spyder?

Hi all

Is there an easy way to switch between python virtual environments in spyder? 

I am on windows and using anaconda with python 3.4, I do create envs in both python2 and python3 and wondering if there was an obvious way to achieve this?

Cheers

Sayth

--
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.
egayer | 24 Oct 12:35 2015
Picon

Spyder 2.3.4 crashes with pandas 0.17.0

Hi all, 

I have seen several posts about spyder crashing while using pandas functions. However, I guess my problem is a little bit different since I experienced random crashes of spyder while typing/calling certain pandas functions in the spyder's editor and only in the editor.

For exemple the last crashes were while I typed
mydataframe.div(
and
mydataframe.transpose

I did use to experience some slowdown when typing the "dot" after the "mydataframe" before. but when recently using .div and .transpose then spyder crashed every single time.
When these lines are typed into the console and then copy/paste into the editor, everything is fine and my script runs smoothly.

I can't tell if it is due to a the fact that mydataframe is too large (I don't think so since it is only 50x16) or if it is due to these ".div"and ".transpose" functions. But it clearly seems than while typing the "dot" after the name of a pandas data frame in the editor, spyder is doing or looking for something that sometime only slowdown the edition, and sometimes leads to the crash.

Hope you guys can help me to fix this.

Many thanks
Eric


Python 2.7.10 |Anaconda 2.0.1 (x86_64)| (default, Sep 15 2015, 14:29:08) 
Spyder 2.3.4 Python 2.7.10 64bits, Qt 4.8.6, PyQt4 (API v2) 4.11.3 on Darwin
Pandas 0.17.0

--
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.
Asaf Miron | 21 Oct 09:38 2015
Picon

Using Spyder (Python 3.4) to run code on remote server

Hello everyone,
I'm a graduate physics student and am rather new to Python and programming in general.
For my research I'm running simulations which I've learnt to write in Python.
I use Spyder as my IDE and am working on a Windows 7 PC (with an i7 processor and 16GB RAM).
I'm running many IPython Consoles off of my computer at the same time and the runtime of my simulations is often quite long (few hours to few days each).

I have access to an on-campus Linux Ubuntu 10.04.4 LTS server which I can use. The problem is that our computer person doesn't know how I can use it and neither do I.

Is there a simple way which would allow me to write me code on my Windows PC, use the server only to run my code?

Any help would be greatly appreciated,
Asaf Miron

--
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.
userrr3 | 15 Oct 11:10 2015
Picon

Spyder Debugger KeyError when using breakpoints

Hello,

I'm using Spyder 2.3.6 with Python 3.4.3 on Linux Mint 64bit

When using a simple test script (see below) and running it normally (F5 / "green arrow") I get the expected output on the console.
When running the same code with the builtin debugger (CTRL F5 / "blue arrow"), nothing unexpected happens either.

However, when I set a breakpoint, for example in the line "b = 5" and run the debugger, everything is fine until i reach the breakpoint, if I continue debugging from that point (OR just step line by line through my whole short script) I get an error message (see below)

a = 4
b
= 5
c
= a + b
print(a, b, c)

Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>
 
File "/usr/local/lib/python3.4/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 705, in debugfile
   
debugger.run("runfile(%r, args=%r, wdir=%r)" % (filename, args, wdir))
 
File "/usr/lib/python3.4/bdb.py", line 431, in run
   
exec(cmd, globals, locals)
 
File "<string>", line 1, in <module>
 
File "/usr/local/lib/python3.4/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 687, in runfile
   
namespace.pop('__file__')
KeyError: '__file__'

I can only assume it's not supposed to be like that, so I am here to ask, is there a problem with my very simple script, is there a  problem with my installation, am I using the debugger wrong... frankly, what am I doing wrong or what have I done wrong?

Thanks for any reply  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.
Harry Stromfelt | 13 Oct 16:08 2015
Picon

Spyder crash with anaconda - regardless of launch method

Hi,

I recently installed Anaconda on OSX. I had Spyder already installed but wanted to use it with Anaconda and all of the packages that come with it. I think the fact that I already had Spyder, or had it opened, screwed something up because Spyder won't load from Anaconda launcher or from the terminal. 

I have now uninstalled the Spyder application so I only have what Anaconda gives you. 

Here is the traceback: 

$ spyder

2015-10-13 14:59:52.927 python[2715:27586] modalSession has been exited prematurely - check for a reentrant call to endModalSession:

Traceback (most recent call last):

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/spyderlib/spyder.py", line 2331, in main

    mainwindow = run_spyder(app, options, args)

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/spyderlib/spyder.py", line 2215, in run_spyder

    main.setup()

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/spyderlib/spyder.py", line 752, in setup

    from spyderlib.plugins.inspector import ObjectInspector

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/spyderlib/plugins/inspector.py", line 41, in <module>

    from spyderlib.widgets.ipython import IPythonControlWidget

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/spyderlib/widgets/ipython.py", line 32, in <module>

    from qtconsole.rich_jupyter_widget import RichJupyterWidget as RichIPythonWidget

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/qtconsole/rich_jupyter_widget.py", line 14, in <module>

    from .jupyter_widget import JupyterWidget

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/qtconsole/jupyter_widget.py", line 21, in <module>

    from .frontend_widget import FrontendWidget

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/qtconsole/frontend_widget.py", line 21, in <module>

    from qtconsole.base_frontend_mixin import BaseFrontendMixin

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/qtconsole/base_frontend_mixin.py", line 3, in <module>

    from jupyter_client import BlockingKernelClient

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/jupyter_client/__init__.py", line 7, in <module>

    from .manager import KernelManager, run_kernel

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/jupyter_client/manager.py", line 32, in <module>

    from .session import Session

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/jupyter_client/session.py", line 48, in <module>

    from zmq.eventloop.ioloop import IOLoop

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/zmq/eventloop/__init__.py", line 3, in <module>

    from zmq.eventloop.ioloop import IOLoop

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/zmq/eventloop/ioloop.py", line 35, in <module>

    from tornado.ioloop import PollIOLoop, PeriodicCallback

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/tornado/ioloop.py", line 46, in <module>

    from tornado.concurrent import TracebackFuture, is_future

  File "/Users/HStromfelt/anaconda/lib/python3.4/site-packages/tornado/concurrent.py", line 37, in <module>

    from concurrent import futures

  File "/Library/Python/2.7/site-packages/concurrent/futures/__init__.py", line 8, in <module>

    from concurrent.futures._base import (FIRST_COMPLETED,

  File "/Library/Python/2.7/site-packages/concurrent/futures/_base.py", line 355

    raise type(self._exception), self._exception, self._traceback

                               ^

SyntaxError: invalid syntax


Thanks for your help! I am really stuck with this one...


Harry

--
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.
egayer | 13 Oct 10:05 2015
Picon

Spyder script to IPhython Notebook converter ?

Hi all, 

As a spyder user I love all the small features provided by this awesome tool that makes my coding super easy. I use spyder as my default IDE but I recently looked at / played around with IPython Notebook and find it super attractive as well and especially for teaching purpose (I use it for my teaching presentations).

However because I feel better using spyder, I was wondering if there was some kind of a tool somewhere that could convert python script into IPython Notebook so I could just use it to generate some IPython Notebook from old scripts. Looking around I found these two related questions/answers :
 
http://stackoverflow.com/questions/21034373/how-to-load-edit-run-save-text-files-py-into-an-ipython-notebook-cell

https://www.webucator.com/blog/2015/07/bulk-convert-python-files-to-ipython-notebook-files-py-to-ipynb-conversion/

It is not that these two options are not satisfying to me (and please forgive my naivety on this purpose), but I was wondering if it could be possible to convert/export a script written in spyder into a IPython Notebook, using for example the cells delimiter (##%) to delimit IPython Notebook cells and the comment (#) for text cells in the IPython Notebook.

Again I have no idea about how much work it would take to make such a converter, but I am just asking because it would make coding AND presentations preparation super easy to me.

Thanks
Eric


PS : The ultimate goal being to find a efficient way to prep my teaching using python to generate htlm5 presentations because I am fed up to literally loose time preping presentations with powerpoint/keynote 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.

Gmane