Re: jupyter console vs. ipython in Emacs

2021-12-20 Thread Pieter van Oostrum
ding pastes. > > However, I discovered that 'ipython --simple-prompt' in Emacs does work > with multiline statements. No idea why jupyter console doesn't. > > Is there any advantage in using jupyter console over ipython? Actually, it also happens when run in Terminal, so it i

jupyter console vs. ipython in Emacs

2021-12-19 Thread Pieter van Oostrum
My Python development environment is Emacs. I used to use 'jupyter console --simple-prompt' (driven by Emacs comint) to do interactive work, but it has the disadvantage that it doesn't work properly with multiline input, including pastes. However, I discovered that 'ipython

Re: ipython display figure

2021-04-13 Thread Stestagg
I'm guessing here a little bit, but it looks like the author expects you to run this code in a jupyter notebook, rather than in an ipython interactive console. The jupyter and ipython projects are related (the same?) which can cause some confusion, but if you run the code you shared in a ju

ipython display figure

2021-04-13 Thread Peng Yu
ts' or 'license' for more information IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help. [ins] In [1]: from fuzzingbook.Grammars import * [ins] In [2]: from IPython.display import SVG, display [ins] In [3]: SVG(show_diagram(syntax_diagram_expr(EXPR_GRAMM

ipython missing required module with python-3.9.1

2020-12-30 Thread Rich Shepard
Using the installed Python3-3.9.1 I rebuilt all python3 modules, including python3-prompt_toolkit-3.0.8, python3-ipython-7.19.0, and ipython_genutils. Trying to invoke ipython results in a not-found module: $ ipython Traceback (most recent call last): File "/usr/bin/ipython",

Re: ipython in different loctions.

2019-10-05 Thread Cameron Simpson
/libexec/pyenv exec ipython3 Python 3.7.4 (default, Aug 29 2019, 06:59:32) [...] In [1]: - Also tried the follows: werner@localhost:~$ bash -x ~/.local/bin/ipython3 + import re + import sys + from IPython import start_ipython from: can't read /var/mail/IPython /home/werner/.

Re: ipython in different loctions.

2019-10-02 Thread Hongyi Zhao
ram=ipython3 + [[ ipython3 = \p\y\t\h\o\n* ]] + export PYENV_ROOT=/home/werner/.pyenv + PYENV_ROOT=/home/werner/.pyenv + exec /home/werner/.pyenv/libexec/pyenv exec ipython3 Python 3.7.4 (default, Aug 29 2019, 06:59:32) Type 'copyright', 'credits' or 'license' for m

Re: ipython in different loctions.

2019-10-02 Thread Cameron Simpson
On 02Oct2019 07:37, Hongyi Zhao wrote: I noticed that the ipython on my Debian box located in the following locations: werner@localhost:~$ ls .local/bin/ipython* .local/bin/ipython .local/bin/ipython3 werner@localhost:~$ ls .pyenv/shims/ipython* .pyenv/shims/ipython .pyenv/shims/ipython3

ipython in different loctions.

2019-10-02 Thread Hongyi Zhao
Hi, I noticed that the ipython on my Debian box located in the following locations: werner@localhost:~$ ls .local/bin/ipython* .local/bin/ipython .local/bin/ipython3 werner@localhost:~$ ls .pyenv/shims/ipython* .pyenv/shims/ipython .pyenv/shims/ipython3 And, they are different

IPython and dumb terminal

2019-04-30 Thread Nobody
Recent versions of IPython ignore $TERM and blindly assume that you're using something similar to xterm. Does it have an option to disable this "feature"? -- https://mail.python.org/mailman/listinfo/python-list

Re: ipython does not work with latest version of prompt-toolkit

2018-12-18 Thread banerjee . rohan98
el > > So I executed: > pip3 install --upgrade prompt-toolkit PyGObject youtube-dl > > This gave: > Successfully installed PyGObject-3.28.3 prompt-toolkit-2.0.1 > youtube-dl-2018.6.2 > ipython 6.4.0 has requirement prompt-toolkit<2.0.0,>=1.0.15, but you&#x

Re: ipython and prompt-toolkit

2018-09-27 Thread Thomas Jollans
On 27/09/2018 07:14, Cecil Westerhof wrote: For a long time I cannot update prompt-toolkit, because ipython requires a version lower as 2. That is why I still use 1.0.15 instead of 2.0.4. Any chance that ipython will be updated concerning this dependency? Well this is an interesting

ipython and prompt-toolkit

2018-09-27 Thread Cecil Westerhof
For a long time I cannot update prompt-toolkit, because ipython requires a version lower as 2. That is why I still use 1.0.15 instead of 2.0.4. Any chance that ipython will be updated concerning this dependency? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in

Demo-Mode in IPython broken?

2018-07-29 Thread Albert Brandl
Hi! The IPython documentation mentions a demo mode that can be used to execute chunks of a Python file that are separated by special comments (e.g. "# stop"). The annotated Python file can be executed by importing `Demo` from `IPython.lib.demo`, instantiating it using the file name a

Re: ipython does not work with latest version of prompt-toolkit

2018-06-03 Thread Cecil Westerhof
gt;> youtube-dl 2018.5.30 2018.6.2 wheel >> >> So I executed: >> pip3 install --upgrade prompt-toolkit PyGObject youtube-dl >> >> This gave: >> Successfully installed PyGObject-3.28.3 prompt-toolkit-2.0.1 >> youtube-dl-2018.6.2 >>

Re: ipython does not work with latest version of prompt-toolkit

2018-06-03 Thread Chris Warrick
> So I executed: > pip3 install --upgrade prompt-toolkit PyGObject youtube-dl > > This gave: > Successfully installed PyGObject-3.28.3 prompt-toolkit-2.0.1 > youtube-dl-2018.6.2 > ipython 6.4.0 has requirement prompt-toolkit<2.0.0,>=1.0.15, but you'll > h

ipython does not work with latest version of prompt-toolkit

2018-06-03 Thread Cecil Westerhof
: Successfully installed PyGObject-3.28.3 prompt-toolkit-2.0.1 youtube-dl-2018.6.2 ipython 6.4.0 has requirement prompt-toolkit<2.0.0,>=1.0.15, but you'll have prompt-toolkit 2.0.1 which is incompatible. And when I now execute ipython3, I get: Traceback (most recent call last):

Re: issue runing ipython

2018-05-11 Thread Steven D'Aprano
On Fri, 11 May 2018 20:13:08 -0700, Sharan Basappa wrote: > I see an issue while running ipython. Can anyone help please. Is the error message not clear enough? It tells you what the problem is ("ipython notebook" is deprecated) and tells you how to fix it (use "jupyter

issue runing ipython

2018-05-11 Thread Sharan Basappa
I see an issue while running ipython. Can anyone help please. D:\Users\sharanb>ipython notebook [TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions. [TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in

Re: ipython install

2018-05-05 Thread Terry Reedy
On 5/5/2018 6:09 AM, Sharan Basappa wrote: On Saturday, 5 May 2018 15:02:33 UTC+5:30, Steven D'Aprano wrote: On Sat, 05 May 2018 00:20:26 -0700, Sharan Basappa wrote: After this, when I type ipython on command prompt, I don't get anything on my windows. You don't get *anyt

Re: ipython install

2018-05-05 Thread Sharan Basappa
On Saturday, 5 May 2018 15:39:32 UTC+5:30, Sharan Basappa wrote: > On Saturday, 5 May 2018 15:02:33 UTC+5:30, Steven D'Aprano wrote: > > On Sat, 05 May 2018 00:20:26 -0700, Sharan Basappa wrote: > > > > > After this, when I type ipython on command prompt, I d

Re: ipython install

2018-05-05 Thread Sharan Basappa
On Saturday, 5 May 2018 15:02:33 UTC+5:30, Steven D'Aprano wrote: > On Sat, 05 May 2018 00:20:26 -0700, Sharan Basappa wrote: > > > After this, when I type ipython on command prompt, I don't get anything > > on my windows. > > You don't get *anything*? No

Re: ipython install

2018-05-05 Thread Steven D'Aprano
On Sat, 05 May 2018 00:20:26 -0700, Sharan Basappa wrote: > After this, when I type ipython on command prompt, I don't get anything > on my windows. You don't get *anything*? Not even an error? -- Steve -- https://mail.python.org/mailman/listinfo/python-list

ipython install

2018-05-05 Thread Sharan Basappa
I am trying to install ipython. I already have python installed. When I type "pip install ipython" I get the following messages: Requirement already satisfied: setuptools>=18.5 in d:\users\sharanb\appdata\local\programs\python\python36-32\lib\site-packages (from ipython) Requir

Re: iPython ? magic

2017-09-21 Thread Pavol Lisy
On 9/21/17, Steve D'Aprano wrote: > In the iPython interactive interpreter, obj? prints information about the > given > object. For example: > > > In [11]: None? > Type: NoneType > Base Class: > String Form:None > Namespace: Python builtin > Docstr

iPython ? magic

2017-09-21 Thread Steve D'Aprano
In the iPython interactive interpreter, obj? prints information about the given object. For example: In [11]: None? Type: NoneType Base Class: String Form:None Namespace: Python builtin Docstring: Does anyone know that the Namespace field is supposed to show? I can't get

pythonpath in ipython console

2017-07-12 Thread christoph
hello, I am a bit confused, i use spyder, when i execute in ipython console program start fails with message 'Attribute error' when I start same program via python console everything works fine, even start from terminal workes fine. It seems that i python does not load Pythonpath

Re: Pressing dot and show sub command in IPython

2017-04-18 Thread Steve D'Aprano
On Wed, 19 Apr 2017 12:37 am, breamore...@gmail.com wrote: > On Tuesday, April 18, 2017 at 2:17:12 PM UTC+1, David Shi wrote: >> Hi, Matt, >> How to make IPython work more interactively? >> As I remember, pressing dot and sub command shows up suggestively in >>

Pressing dot and show sub command in IPython

2017-04-18 Thread David Shi via Python-list
Hi, Matt, How to make IPython work more interactively? As I remember, pressing dot and sub command shows up suggestively in IPython. But, now, after re-installing IPython notebook, it does not do so any more. Looking forward to hearing from you. Regards. David -- https://mail.python.org/mailman

Re: How to run a .py file in IPython?

2016-09-07 Thread Lawrence D’Oliveiro
On Wednesday, August 31, 2016 at 3:22:40 AM UTC+12, umair durrani wrote: > It seems that the script can't 'see' any files in the Data directory. Have you tried adding debug statements to the script to 1) print out its default directory, and 2) what items it can see in that directory? -- https://m

Re: How to reset IPython notebook file association

2016-06-26 Thread eryk sun
On Sat, Jun 25, 2016 at 11:00 AM, David Shi via Python-list wrote: > I use IPython Notebook to do Python programming. > I used "Open with" and set it with Google Chrome. Then, my IPython notebook > does not load properly. > How can I reset IPython notebook file association

Re: How to reset IPython notebook file association

2016-06-26 Thread Lawrence D’Oliveiro
On Saturday, June 25, 2016 at 11:03:17 PM UTC+12, David Shi wrote: > I use IPython Notebook to do Python programming. > I used "Open with" and set it with Google Chrome. Why did you do that? You open notebooks from within your web browser, not your system’s file br

Re: How to reset IPython notebook file association

2016-06-25 Thread Steven D'Aprano
On Sat, 25 Jun 2016 09:00 pm, David Shi wrote: > I use IPython Notebook to do Python programming. > I used "Open with" and set it with Google Chrome.  Then, my IPython > notebook does not load properly. How can I reset IPython notebook file > association, so that I can u

How to reset IPython notebook file association

2016-06-25 Thread David Shi via Python-list
I use IPython Notebook to do Python programming. I used "Open with" and set it with Google Chrome.  Then, my IPython notebook does not load properly. How can I reset IPython notebook file association, so that I can use it again? Looking forward to hearing from you. Regards. David

IPython and Jupyter

2016-03-29 Thread David Shi via Python-list
Ipython-4.1.2 I thought that I installed Ipython. I typed in ipython notebook. But a WARNING came up, saying Subcommand 'ipython notebook is deprecated and will be removed in future versions. Then Jupyter turned up. How can I make available both Ipython notebook and Jupyter?, so that

Re: Python dashboard tutorials/frameworks for interactive, D3.js graphs in IPython Notebooks

2015-11-06 Thread Chris Angelico
ta science blog: http://moderndata.plot.ly/, or these 21 IPython >> Notebooks: https://plot.ly/python/ipython-notebooks/. >> > > You guys are so expensive - not even worth looking into your product. > Absolutely retarded. > Srinath No need to be so rude as you complain a

Re: Python dashboard tutorials/frameworks for interactive, D3.js graphs in IPython Notebooks

2015-11-05 Thread srinath . nathan
using Python. We're especially drawn towards matplotlib, pandas, and > IPython. We're still early in building, so any and all feedback and help is > much appreciated. > > First, here is an overview of some of our dashboard capabilities: > > http://blog.plot.ly/p

Re: IPython Notebooks to Learn Python

2015-10-09 Thread Rémi Rampin
2015-10-08 13:49 EDT, Rajath Kumar : > I have written IPython Notebooks to learn Python interactively. I have > covered all the basic concepts and it is everything one needs to get > started with the language. > > Do check it out : https://github.com/rajathkumarmp/Python-Lectures

Python dashboard tutorials/frameworks for interactive, D3.js graphs in IPython Notebooks

2015-07-09 Thread Matt Sundquist
Hi all, I'm part of Plotly, and we've just finished a few releases I thought I'd pass along. These tools make it easy to craft interactive graphs and dashboards with D3.js using Python. We're especially drawn towards matplotlib, pandas, and IPython. We're still earl

Re: Should iPython Notebook replace Idle

2015-07-04 Thread Sayth Renshaw
anguages will also be supported (e.g. Java and C++). > Having this swallowed into Python is probably never going to happen. IIRC, > the current release is the last to be named IPython. > > Sturla Yeah I listened to the recent podcast talk python I believe and the creators of ipyt

Re: Should iPython Notebook replace Idle

2015-07-04 Thread Sturla Molden
robably never going to happen. IIRC, the current release is the last to be named IPython. Sturla -- https://mail.python.org/mailman/listinfo/python-list

Re: Should iPython Notebook replace Idle

2015-07-03 Thread Jason Swails
On Fri, Jul 3, 2015 at 10:01 PM, Sayth Renshaw wrote: > In future releases of Python should ipython Notebooks replace idle as the > default tool for new users to learn python? > This would as I see it have many benefits? > > 1. A nicer more usual web interface for new users. &

Should iPython Notebook replace Idle

2015-07-03 Thread Sayth Renshaw
In future releases of Python should ipython Notebooks replace idle as the default tool for new users to learn python? This would as I see it have many benefits? 1. A nicer more usual web interface for new users. 2. Would allow the python documentation and tutorials to be distributed as ipython

Re: Setting prompt in ipython

2015-05-24 Thread Chris Angelico
On Sun, May 24, 2015 at 11:56 PM, Mark Lawrence wrote: > One of the major warts that (i)Python has yet to address via a PEP is that > it fails dismally when it comes to making the coffee and sandwiches to keep > you going whilst using it. Perhaps you'd like to look into this issue? I'm > not awa

Re: Setting prompt in ipython

2015-05-24 Thread Mark Lawrence
On 24/05/2015 14:07, Cecil Westerhof wrote: Op Sunday 24 May 2015 14:11 CEST schreef Cecil Westerhof: Op Sunday 24 May 2015 13:54 CEST schreef Laura Creighton: This file supposedly lists what you can customise your ipython prompt to show. I have not tried this myself. http

Re: Setting prompt in ipython

2015-05-24 Thread Cecil Westerhof
Op Sunday 24 May 2015 14:11 CEST schreef Cecil Westerhof: > Op Sunday 24 May 2015 13:54 CEST schreef Laura Creighton: > >> This file supposedly lists what you can customise your ipython >> prompt to show. I have not tried this myself. >> >> http://www.math.uiuc.

Re: Setting prompt in ipython

2015-05-24 Thread Cecil Westerhof
Op Sunday 24 May 2015 13:54 CEST schreef Laura Creighton: > This file supposedly lists what you can customise your ipython > prompt to show. I have not tried this myself. > > http://www.math.uiuc.edu/~gfrancis/illimath/windows/aszgard_mini/movpy-2.0.0-py2.4.4/manuals/IPython/node7.

Re: Setting prompt in ipython

2015-05-24 Thread Laura Creighton
This file supposedly lists what you can customise your ipython prompt to show. I have not tried this myself. http://www.math.uiuc.edu/~gfrancis/illimath/windows/aszgard_mini/movpy-2.0.0-py2.4.4/manuals/IPython/node7.html Laura -- https://mail.python.org/mailman/listinfo/python-list

Setting prompt in ipython

2015-05-24 Thread Cecil Westerhof
In bash I have: \[\e[1m\][\D{%a, %d %b %T} \u@\h:\w]\n$ \[\e[0m\] which gives me the following prompt: [Sun, 24 May 12:23:45 cecil@Equus:~] $ I want to have a similar prompt in ipython. At the moment I have come to: %config PromptManager.in_template = r'[\T \u@\h:\Y1]\n\#>

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
>> this gives: >> .:/home/cecil/Python/PythonLibrary >> >> Then I start ipython3 and get/do the following: >> Python 3.4.1 (default, May 23 2014, 17:48:28) [GCC] >> Type "copyright", "credits" or "license" for more information. >&g

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
art ipython3 and get/do the following: > Python 3.4.1 (default, May 23 2014, 17:48:28) [GCC] > Type "copyright", "credits" or "license" for more information. > > IPython 2.2.0 -- An enhanced Interactive Python. ? -> Introduction > and overview of IP

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Mark Lawrence
: Python 3.4.1 (default, May 23 2014, 17:48:28) [GCC] Type "copyright", "credits" or "license" for more information. IPython 2.2.0 -- An enhanced Interactive Python. The latest iPython is 3.1.0. Time to update? -- My fellow Pythonistas, ask not what our languag

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
gt;>> >>>>> On 22/05/2015 06:20, Cecil Westerhof wrote: >>>>>> I am looking into using ipython instead of bash. But when I >>>>>> call a python program from ipython PYTHONPATH is not set. So >>>>>> pythonscripts that need a m

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Peter Otten
Cecil Westerhof wrote: > Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: > >> Cecil Westerhof wrote: >> >>> Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: >>> >>>> On 22/05/2015 06:20, Cecil Westerhof wrote: >>>>&

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
interpret it is that the very handy shell variable is not used >> in ipython. >> >> -- >> Cecil Westerhof >> Senior Software Engineer >> LinkedIn: http://www.linkedin.com/in/cecilwesterhof > > It's used around here. But we all have to do: > export

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Laura Creighton
In a message of Sat, 23 May 2015 16:08:00 +0200, Cecil Westerhof writes: >That is not the problem: >os.environ['PYTHONPATH'] >gives: >.:/home/cecil/Python' > >As I interpret it is that the very handy shell variable is not used in ipython. > >-- >

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 15:25 CEST schreef Peter Otten: > Cecil Westerhof wrote: > >> Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: >> >>> On 22/05/2015 06:20, Cecil Westerhof wrote: >>>> I am looking into using ipython instead of bash. But

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Peter Otten
Cecil Westerhof wrote: > Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: > >> On 22/05/2015 06:20, Cecil Westerhof wrote: >>> I am looking into using ipython instead of bash. But when I call a >>> python program from ipython PYTHONPATH is not set. So

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Cecil Westerhof
Op Saturday 23 May 2015 11:12 CEST schreef Mark Lawrence: > On 22/05/2015 06:20, Cecil Westerhof wrote: >> I am looking into using ipython instead of bash. But when I call a >> python program from ipython PYTHONPATH is not set. So pythonscripts >> that need a module throug

Re: PYTHONPATH when calling from ipython

2015-05-23 Thread Mark Lawrence
On 22/05/2015 06:20, Cecil Westerhof wrote: I am looking into using ipython instead of bash. But when I call a python program from ipython PYTHONPATH is not set. So pythonscripts that need a module through PYTHONPATH will not work. I could do something like: !PYTHONPATH=~/Python

PYTHONPATH when calling from ipython

2015-05-21 Thread Cecil Westerhof
I am looking into using ipython instead of bash. But when I call a python program from ipython PYTHONPATH is not set. So pythonscripts that need a module through PYTHONPATH will not work. I could do something like: !PYTHONPATH=~/Python/PythonLibrary python2 … But I find that a little bit

Re: iPython 3 released

2015-03-01 Thread Fabien
On 01.03.2015 19:24, Mark Lawrence wrote: This seemed to be a low key affair, at least from my perspective True, no messages yet on the scientific python mailing lists either. I am wondering if avoiding a massive switch to a *.0 release was the reason for this (relative) silence. Fabien -

iPython 3 released

2015-03-01 Thread Mark Lawrence
This seemed to be a low key affair, at least from my perspective, but I'm fairly certain that people here will be interested. http://ipython.org/ipython-doc/3/whatsnew/version3.html http://ipython.org/install.html -- My fellow Pythonistas, ask not what our language can do for you, ask

Re: Taming the verbosity of ipython tracebacks

2015-02-10 Thread Mark Lawrence
On 10/02/2015 19:27, Albert-Jan Roskam wrote: - Original Message - From: Chris Angelico To: Cc: "python-list@python.org" Sent: Tuesday, February 10, 2015 8:00 PM Subject: Re: Taming the verbosity of ipython tracebacks On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky wro

Re: Taming the verbosity of ipython tracebacks

2015-02-10 Thread John Ladasky
On Tuesday, February 10, 2015 at 11:34:12 AM UTC-8, Albert-Jan Roskam wrote: > - Original Message - > > > From: Chris Angelico > > To: > > Cc: "python-list@python.org" > > Sent: Tuesday, February 10, 2015 8:00 PM > > Subject: Re: Taming t

Re: Taming the verbosity of ipython tracebacks

2015-02-10 Thread Albert-Jan Roskam
- Original Message - > From: Chris Angelico > To: > Cc: "python-list@python.org" > Sent: Tuesday, February 10, 2015 8:00 PM > Subject: Re: Taming the verbosity of ipython tracebacks > > On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky > wrote:

Re: Taming the verbosity of ipython tracebacks

2015-02-10 Thread John Ladasky
On Tuesday, February 10, 2015 at 11:00:32 AM UTC-8, Chris Angelico wrote: > On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky > wrote: > > I'm running Python 3.4.0, and ipython3 1.2.1, on Ubuntu Linux 14.04 64-bit. > > > > That's nice recent Python, but I just tri

Re: Taming the verbosity of ipython tracebacks

2015-02-10 Thread Chris Angelico
On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky wrote: > I'm running Python 3.4.0, and ipython3 1.2.1, on Ubuntu Linux 14.04 64-bit. > That's nice recent Python, but I just tried installing ipython using pip3, and got version 2.4.1, and was unable to reproduce your scenario. Is it

Taming the verbosity of ipython tracebacks

2015-02-10 Thread John Ladasky
Hi folks, I'm running Python 3.4.0, and ipython3 1.2.1, on Ubuntu Linux 14.04 64-bit. Whenever I execute code from within ipython which triggers an exception -- any exception -- I get a page full of information. The exceptions in my code trigger exceptions within ipython. Every error me

How to exit from embedded IPython shell?

2014-09-09 Thread Andy Zhang
Hi, I am embedding IPython inside a c application, by running PYTHONSTARTUP file which is: import IPython IPython.embed() Then the application interact with user input via stdin. After the user is done, she would type EOF. The program should exit, but keep all the python objects in memory

Re: embedding ipython kernel in a thread

2014-06-09 Thread Carlos Anselmo Dias
On 06/09/2014 04:07 PM, Carlos Anselmo Dias wrote: On 06/09/2014 03:55 PM, Gelonida N wrote: Not sure what you are trying to tell me with attached PHP code. Hi ... Nothing important I'd write for what you're seeking ... I'm not one Python expert ... just reading fast what you wrote ... i

Re: embedding ipython kernel in a thread

2014-06-09 Thread Carlos Anselmo Dias
On 06/09/2014 03:55 PM, Gelonida N wrote: Not sure what you are trying to tell me with attached PHP code. Hi ... Nothing important I'd write for what you're seeking ... I'm not one Python expert ... just reading fast what you wrote ... it's certainly one interesting issue if you can contro

Re: embedding ipython kernel in a thread

2014-06-09 Thread Gelonida N
On 6/9/2014 3:34 PM, Carlos Anselmo Dias wrote: On 06/09/2014 01:59 PM, Gelonida N wrote: Hi, I'd like to embed an ipython kernel in an appliction, such, that I can use ipython console --existing kernel-.json lateron to connect to it and to look at some values Due to various reason

Re: embedding ipython kernel in a thread

2014-06-09 Thread Carlos Anselmo Dias
On 06/09/2014 01:59 PM, Gelonida N wrote: Hi, I'd like to embed an ipython kernel in an appliction, such, that I can use ipython console --existing kernel-.json lateron to connect to it and to look at some values Due to various reason I don not want to start it in the main thread

embedding ipython kernel in a thread

2014-06-09 Thread Gelonida N
Hi, I'd like to embed an ipython kernel in an appliction, such, that I can use ipython console --existing kernel-.json lateron to connect to it and to look at some values Due to various reason I don not want to start it in the main thread. If you look at following example you wil

Re: Diagnose a segfault in ipython/readline

2014-03-06 Thread Fabio Zadrozny
On Thu, Mar 6, 2014 at 3:11 AM, Felix Yan wrote: > On Wednesday, March 05, 2014 20:15:31 Ned Deily wrote: > > The current > > assumption is that Python 2.7.6+, 3.3.5, and 3.4.0 have no problems with > > readline 6.3. > > Thank you. > > I just gave a try to 3.4.0b2 with readline 6.3, and still get

Re: Diagnose a segfault in ipython/readline

2014-03-05 Thread Felix Yan
On Wednesday, March 05, 2014 20:15:31 Ned Deily wrote: > The current > assumption is that Python 2.7.6+, 3.3.5, and 3.4.0 have no problems with > readline 6.3. Thank you. I just gave a try to 3.4.0b2 with readline 6.3, and still get the same segfault. Not sure the version is new enough though.

Re: Diagnose a segfault in ipython/readline

2014-03-05 Thread Ned Deily
In article <2114014.zHAFJyoHbS@felix-arch>, Felix Yan wrote: > I'm getting a reproducible crash in ipython, but not sure what upstream it > should belong to. > > The crash happens with python 2.7.6/3.3.4, with readline 6.3. > > Steps to reproduce: > > - run

Diagnose a segfault in ipython/readline

2014-03-05 Thread Felix Yan
Hi, I'm getting a reproducible crash in ipython, but not sure what upstream it should belong to. The crash happens with python 2.7.6/3.3.4, with readline 6.3. Steps to reproduce: - run ipython - input some random char sequence that you never inputed (like "ae3r0gka03k0k23"

Re: ipython

2014-02-15 Thread greymausg
On 2014-02-15, greymausg wrote: > On 2014-02-15, Mark Lawrence wrote: >> On 15/02/2014 11:55, greymausg wrote: >>> using IPython, is there any way of recording the commands I have entered? >>> >> >> I believe ipython automatically stores the commands you e

Re: ipython

2014-02-15 Thread Peter Otten
greymausg wrote: > using IPython, is there any way of recording the commands I have entered? Did you ever enter ? in ipython? In [1]: a = float(raw_input("a? ")) a? 1 In [2]: b = float(raw_input("b? ")) b? 2 In [3]: ab = a + b In [4]: c = ab*ab In [5]: print c 9.0

Re: ipython

2014-02-15 Thread greymausg
On 2014-02-15, Mark Lawrence wrote: > On 15/02/2014 11:55, greymausg wrote: >> using IPython, is there any way of recording the commands I have entered? >> > > I believe ipython automatically stores the commands you enter. > Searching for ipython+command+history should ge

Re: ipython

2014-02-15 Thread Mark Lawrence
On 15/02/2014 11:55, greymausg wrote: using IPython, is there any way of recording the commands I have entered? I believe ipython automatically stores the commands you enter. Searching for ipython+command+history should get you more detail than I can offer :) -- My fellow Pythonistas, ask

ipython

2014-02-15 Thread greymausg
using IPython, is there any way of recording the commands I have entered? -- maus . . ... -- https://mail.python.org/mailman/listinfo/python-list

ipython and pyglet

2014-01-01 Thread Jacob Goodson
Hello! Has anyone here tried to get ipython to interact with the event loop for pyglet? If so, would you be willing to share come example code? I would like to be able to interactively code in pyglet, creating and updating objects while the program is running. Thanks! -- https

REG: Interactive Python (ipython notebook) Tutorial for Beginners

2013-11-08 Thread Anoop Thomas Mathew
Hi All, Lately, I've been working on a ipython notebook tutorial for beginners. The idea is that, those who have basic idea about computers should be able to pick up python very easily. https://bitbucket.org/atmb4u/python-live/ I have completed 25 chapters. Would love some reviews, sugges

Re: ipython

2013-07-09 Thread davide . dalmasso
I did not see the massage when installation finisched. Sorry! Many Thanks!!! > > The IPython installer actually mentions this when it finishes > > installing: > > > > "Distribute (setuptools) is required to create Start Menu items. > > Re-run this insta

Re: ipython

2013-07-08 Thread alex23
On 9/07/2013 12:44 AM, davide.dalma...@gmail.com wrote: Hi, I work with Python 3.3. I downloaded an IPython executable version from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no shortcut appears in my start menu. How can I launch it or alternatively is there some other free

Re: ipython

2013-07-08 Thread Wanderer
On Monday, July 8, 2013 10:44:11 AM UTC-4, davide@gmail.com wrote: > Hi, I work with Python 3.3. > > I downloaded an IPython executable version from > http://www.lfd.uci.edu/~gohlke/pythonlibs/ > > I installed it but no shortcut appears in my start menu. > >

Re: ipython

2013-07-08 Thread Steven D'Aprano
On Mon, 08 Jul 2013 07:44:11 -0700, davide.dalmasso wrote: > Hi, I work with Python 3.3. > I downloaded an IPython executable version from > http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no > shortcut appears in my start menu. How can I launch it or alternatively >

ipython

2013-07-08 Thread davide . dalmasso
Hi, I work with Python 3.3. I downloaded an IPython executable version from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I installed it but no shortcut appears in my start menu. How can I launch it or alternatively is there some other free source of executable file for Windows 7? Many Thanks

Re: IPython in Emacs

2013-04-25 Thread rusi
On Apr 26, 3:18 am, Seb wrote: > > I don't understand what you're asking. I evaluate the script buffer > with `python-shell-send-buffer' and start IPython with `run-python'. There are two emacs python modes -- one which comes builtin with emacs -- python.el, o

Re: IPython in Emacs

2013-04-25 Thread Seb
On Thu, 25 Apr 2013 06:54:33 -0700 (PDT), rusi wrote: > On Apr 25, 6:01 pm, Seb wrote: >> On Wed, 24 Apr 2013 21:38:04 -0700 (PDT), >> rusi wrote: >> > There were some ipython+emacs+windows bugs: >> >https://bugs.launchpad.net/ipython/+bug/290228 > Last

Re: IPython in Emacs

2013-04-25 Thread rusi
On Apr 25, 6:01 pm, Seb wrote: > On Wed, 24 Apr 2013 21:38:04 -0700 (PDT), > > rusi wrote: > > There were some ipython+emacs+windows bugs: > >https://bugs.launchpad.net/ipython/+bug/290228 > > Last I tried nearly 2 years, they were still there > >http://groups.

Re: IPython in Emacs

2013-04-25 Thread Seb
On Wed, 24 Apr 2013 21:38:04 -0700 (PDT), rusi wrote: > There were some ipython+emacs+windows bugs: > https://bugs.launchpad.net/ipython/+bug/290228 > Last I tried nearly 2 years, they were still there > http://groups.google.com/group/comp.lang.python/browse_thread/thread/36e75756

Re: IPython in Emacs

2013-04-24 Thread rusi
On Apr 25, 8:35 am, Seb wrote: > Hi, > > Please excuse the slightly off-topic query.  I'm learning Python, using > the IPython (0.13) shell, and wanted to run it from Emacs 24.  AFAICT, > python.el is the most actively developed library, and is included in > Emacs.  Ho

IPython in Emacs

2013-04-24 Thread Seb
Hi, Please excuse the slightly off-topic query. I'm learning Python, using the IPython (0.13) shell, and wanted to run it from Emacs 24. AFAICT, python.el is the most actively developed library, and is included in Emacs. How do experienced Python programmers set up their python.el to mak

Re: Getting ipython notebook to plot inline [updated]

2012-10-11 Thread Frank Franklin
Ok, so just to add to this, there is no problem plotting when I used the following command in my terminal to start the notebook: ipython notebook The only problem is that this plots my figures outside of the notebook page, and I really want to get everything into the notebook, since that&#

Getting ipython notebook to plot inline

2012-10-09 Thread Frank Franklin
I've just managed to install ipython and get it to run by typing ipython notebook --pylab=inline Now I'm getting the following error when I try to plot something in ipython notebook: AttributeError: 'module' object has no attribute 'FigureCanvas' I've tr

Re: IPython 0.13 is officially out!

2012-07-01 Thread rusi
On Jul 1, 9:03 pm, Dave Cook wrote: > On 2012-07-01, Virgil Stokes wrote: > > > I have tried to update 0.12 in Ubuntu 12.04 but as of now it can not find > > 0.13. > > Any suggestions on how to get it into Ubuntu 12.04 would be appreciated. > > Install pip

  1   2   3   4   >