Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Some experimentation and googling suggests that the problem is not the timing 
of '\r' issuance, but that '\r' in ipython notebook doesn't do what it does in 
the terminal, since "IPython Notebook is not a terminal emulator". Therefore, 
in a terminal IPython instance:
In [1]: print 'hello\rgoodbye'
goodbye

whereas in IPython Notebook, you get:
In [2]: print 'hello\rgoodbye'

hello
goodbye

Issue 27 on this tracker suggests the use of a javascript implementation.

Original comment by [email protected] on 4 Dec 2012 at 7:55

from python-progressbar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Hi Peter, 
in IPython 0.13.1 (+Chrome), I get identical behavior in the notebook and the 
shell:

In Notebook
In [1]: print 'Hello\rGoodbye'
Goodbye

In IPython shell:
In [1]: print 'Hello\rGoodbye'
Goodbye

Anyhow - thanks for pointing me to the fancy javascript implementation.

Original comment by [email protected] on 4 Dec 2012 at 8:15

from python-progressbar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
I'm merging this into issue 27.

Original comment by [email protected] on 25 Dec 2012 at 7:14

  • Changed state: Duplicate

from python-progressbar.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 4, 2024
Minor comment, but in the suggested work-around (which works for me) the line 
is actually 283, not 238. This is verified to work for progressbar 2.3 using 
Python 2.7.3 and IPython 0.13.1 on Windows

Original comment by [email protected] on 28 May 2013 at 9:22

from python-progressbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.