The easycython script works really well. Cython magic works but my primary
mode of development is python scripts, not IPython notebooks. How
difficult would it be to have the run button run the easycython script on
the respective file? Still, it may be nice to create the setup file so
that the user can easily edit key parameters such as the optimization level
and compiler.
Thanks,
John
On Thursday, October 23, 2014 2:27:47 PM UTC-4, Carlos Córdoba wrote:
>
> That's certainly doable but what about using the %cython magic from the
> IPython project to achieve similar results? (I'm not exactly sure both work
> the same, just speculating a bit).
>
> El 23/10/14 a las #4, John Lambert escribió:
>
> Ok, a little more of a developed idea:
>
> -When you "run" or press "f5":
> --check if the file myfile_setup.py exists and if not, create one with a
> default, working setup script like the one above.
> --Execute the script: runfile("myfile_setup.py",args="build_ext
> --inplace",wdir='C:/MyPath')
>
> On Wednesday, October 22, 2014 8:38:15 AM UTC-4, John Lambert wrote:
>>
>> Hello,
>>
>> Cython is very powerful and works well with the most recent release,
>> but there are a few things that would help out greatly, if possible:
>>
>> *code checking:*
>> Currently, i know if I forgot a bracket or a colon when I compile my
>> code. It would be nice to have auto-updated code checking as in python
>> along with better color coding say for "cimport", etc.
>>
>> *That helpful annotate thing:*
>> While it is straightforward to have a terminal and browser open to look
>> at all those pretty yellow lines from the annotation results, having
>> something built in as a shortcut or a button would be helpful. Even if it
>> just called the "cython -a myfile.pyx" routine and auto-opened the default
>> browser, it would be great.
>>
>> *A compile button:*
>> Hey, we know it is a cython file with that pyx extension, so why not have
>> a button and shortcut that runs a nice little script:
>>
>>
>> from distutils.core import setup
>> from Cython.Build import cythonize
>> import numpy as np
>> import other_modules???
>>
>> setup(
>> ext_modules = cythonize("C:\mypath\myfile.pyx"),
>> include_dirs=[np.get_include()]
>> )
>>
>> And run:
>>
>> python setup.py build_ext --inplace
>>
>>
>> I think these additions would make using Cython much more user friendly
>> and accessible in Spyder.
>>
>> Thanks,
>> John
>>
> --
> 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 [email protected] <javascript:>.
> To post to this group, send email to [email protected]
> <javascript:>.
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.