DrBwts | 13 Feb 17:04 2015
Picon

vPython extrusion problem when called from Spyder

Hi,

I'm trying to get a simple extrusion to show using vPython via Spyder.

from visual import *

# Shape
tri = Polygon( [(-2,0), (0,4), (2,0)] )

# Path
straight = [(0,0,0),(0,0,-4)]

# Create extrusion
extrusion(pos=straight, shape=tri, color=color.yellow)



All the other examples I've worked through work fine but for some reason this just leaves the vPython window hanging with no output, just grey.

Anybody have a clue why?

I'm on a Win7 x64 computer running the latest version the x64 Anaconda release.

Thanks

B

--
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.
christian_baillard | 11 Feb 21:15 2015
Picon

.bashrc and PYTHONPATH (mac os x)

Also another question. When launching Spyder in a terminal it loads the environment variables in .bashrc and append some Spyder variables to it.
The problem is with the pythonpath, it seems to be overwritten, I only have 'PYTHONPATH': '/Applications/Spyder-Py2.app/Contents/Resources' when doing an os.environ in the python console whereas in my terminal 'echo $PYTHONPATH' returns  /Applications/Spyder-Py2.app/Contents/Resources:/Applications/Trelis-15.0.app/C‌​ontents/MacOS which is what I want. Any idea why?

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.
christian_baillard | 11 Feb 19:59 2015
Picon

adding directory present in mac os .app into PYTHONPATH in Spyder

I have a directory /Applications/Trelis-15.0.app/Contents/MacOS that has python scripts that I want to use in Spyder. Unfortunately I cannot add this directory using the Pythonpath Managerbecause it doesn't allow to set the path containing a ".app". How can I do to import the scripts present into that directory?

--
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.
Enrico Giampieri | 11 Feb 01:22 2015
Picon

possible enhancement of the object inspector

Hello everyone,

I started using again spyder after a long interval of using the ipython notebook, and I found that the improvement are incredible since the last time I used it.
The cell block feature (not sure if it is new or I simply didn't noticed it at first) is especially nice, and is one of the things that persuaded me to insert spyder again in my workflow.

The only thing that I find missing is the possibility of the object inspector to understand that a string can be a docstring even outside the definition of a class or a function.
A prime example is the documentation of modules, that right now is not visualized correctly (or at least I didn't found how to visualize it properly).

One thought lead to another, and I started wondering how hard would it be for the object inspector to understand a docstring for each cell block.
That would allow to express the comments for each code in a very expressive way, that could compete with the expressivity of an ipython notebook,
while maintaining a normal plain format (the friction of doing version control with a notebook is what lead me to try again spyder in the first place).

In short, given a code as:

#%%
"""
some very cool docstring in here
"""

myvariable = 42




the object inspector could recognize the block documentation as valid and show it properly.
Would it be possible to include also images? in the restructured text is formally possible, but I couldn't manage to do it,
and I'm not sure if it's a limit of the inspector or of my ability.

I tried to take a look at the inspector to understand what was going on and implement it myself, but I got lost and gave up...

thank you very much for your work, I hope to be able to contribute soon with something!
Enrico

--
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.
Amarjit Chandhial | 9 Feb 09:44 2015
Picon

multiple spyder for python 27 and python 34

My aim is to enable iPython within spyder multiple install 27 and 34 on Windows 64bit. 
I have spyder working normally with Python34. I have a .spyder2-py3 folder. 
With Python34 working I have installed Python27 and want to get a separate spyder working with 27, as-well as 34. 
I tried to install Spyder for 27 via pip e.g. at CMD prompt

C:\Users\name>C:\Python27\Scripts\pip.exe install spyder

I do not have a .spyder2 folder. How do I get spyder working with Python27?  

--
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.
Shadab Zafar | 8 Feb 17:54 2015
Picon

Integrating Sage and Spyder

Hello everyone,

I am planning to work for Sage during Google Summer Of Code (if I get selected,
that is) and my project would be to integrate sage into spyderlib.

Core features I've planned as of now are, Adding sage console backend (similar
to ipython console?), Communication with sagecell server (it's a somewhat
modified remote ipython kernel) and debugging (again a modified version of pdb.)

I was wondering if someone from the community has already tried doing this in
the past, as I saw this issue (from 2011) mentioning this.

As an aside, how hard do you guys think something like this would be? Sage being
a big project and all.

I'd also like to fix some easy bugs in spyder (as a way of getting to know the
codebase), but I saw a mail that you guys plan to move to Github, so If in the
meantime I have a pull ready, should I open it on bitbucket or wait till the migration
to Github is complete?

P.S - Spyder should apply for GSoC too, it's fun.
https://www.google-melange.com/gsoc/homepage/google/gsoc2015

--
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.
Ramprasad G | 6 Feb 07:41 2015
Picon

How to start two instances of Spyder with Python 2.7 & Python 3.4?

I had spyder installed with Python 3.4 on Windows Vista about two months ago.

Today I wanted to run spyder with Python 2.7. So, went through this post & installed Python 2.7 for Spyder 

conda create -n python2 python=2.7 anaconda

Have activated it 
activate python2

Now, how do I start spyder with Python 2.7 instead of the default 3.4?

*Discussion on StackOverflow

--
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.
Christopher Snyder | 5 Feb 21:59 2015
Picon

feature request smart parenthesis completion

This has come up often enough that I would like to make a feature request of it. I don't know how to fix it, but I know what I would like fixed very badly.

Suppose we have a line like:
return myFun( A.shape )

But blast!, we forgot that sometimes A is a list not an array, so we go back

return myFun( np.array( A.shape   < <at> >    )

when your cursor is at the < <at> > symbol pressing ) replaces the existing parenthesis instead of adding another one. Inevitably I hit f5 and have to go back again.

Could we make it so that if you're clearly adding an addition set of open-parenthesis that the parenthesis isn't replaced?.. sorry if that's vague.

-Chris

--
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.
brendandetracey via spyder | 5 Feb 14:34 2015

Spyder 2.3.2 : No Python console is currently selected to run

Hi,

I recently started using Spyder 2.3.1 (Anaconda 64-bit win) and it was working beautifully. The first time I ran a script the run dialog would pop open and the script would run. But something has become unglued. Today when I try to run a scrip, no dialog pops up. Instead I get the "No Python console is currently selected to run" pop-up. If I restart the kernel, then the script runs without the run dialog. If I change the run settings to run in a new kernel, then it runs. I have tried resetting preferences, and the "Reset Spyder Settings" link in the Anaconda start menu. I have just upgraded to Spyder 2.3.2. The problem remains. For some reason, upon startup Spyder is not picking up the first kernel. Having to hit ctrl-. whenever I start Spyder is not the end of the world, but how can I fix 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.
0xdeadcafebeef | 4 Feb 19:15 2015
Picon

IPython console kernel restart is a hard restart on Windows

Hi,

I have a Cython object that creates remote processes. When this object is deallocated, it shuts down those remote processes. This works in the IPython QTConsole when I restart the kernel using Ctrl-., but when I do the same in the Spyder IPython console, this does not work. Through running Spyder through the debugger, I see that PyQt4.QtCore.QProcess.kill() is called, which according to the Qt docs, uses TerminateProcess on Windows, which cannot be trapped. 

Is there any way to register with a Spyder console, a handler that will be run before exit? Or to use some other widget set that does not do a hard kill?

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.
Haiman Duan | 2 Feb 07:57 2015
Picon

Don't know how to install new modules

Hi everyone,

I try to install cvxopt into the Spyder of Python 2.7. 

I used the terminal with Linux commands. But after I entered the directory of the module, I used "Python setup.py install" but it turns out that the command was invalid. 

I googled a lot but I fail to find a solution to installing a module within Spyder. Can you guys give me some suggestions?

Thank you!

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