On 12/15/2014 01:47 PM, Srinivasan Rajaraman wrote:
I am in the Python console.
Aah, I figured it out. Spyder uses the scientific_startup.py script in
the console STARTUP script to try to emulate some of the IPython
commands. The %clear 'magic' provided does not work the same as the
IPython equivalent, so in the Python shell you need to do:
>>> s = 'str'
>>> %clear s
>>> s
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 's' is not defined
clear in this case works on variables versus just clearing the screen as
it does in IPython.
If it where me I would just stick to the IPython console.
Srini
On Monday, December 15, 2014 11:41:12 AM UTC-5, Adrian Klaver wrote:
On 12/14/2014 04:41 PM, Srinivasan Rajaraman wrote:
> 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?
Are you in the Python console or the Ipython console?
>
> Regards,
> Srini
>
>
>
--
Adrian Klaver
[email protected] <javascript:>
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
--
Adrian Klaver
[email protected]
--
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.