-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jupyter seems to only print out the last out of all cells #194
Comments
This is typical notebook behavior. The others did execute, but the cell only prints the result of the last evaluation to console. If you put |
<div id="AOLMsgPart_2_ae6e4d62-7862-4cef-9104-74dfa71c9579">
Dylan,
So since these things are Boolean, and according to you they executed. Why didn't the executed Boolean outputs printed? I am thinking that since they are Boolean results that they are automatically supposed to print without me explicitly calling them to print. Is my logic wrong?
Sent from AOL Mobile Mail
…-----Original Message-----
From: Dylan Bargteil <[email protected]>
To: tkf/emacs-ipython-notebook <[email protected]>
Cc: sirtosti <[email protected]>; Author <[email protected]>
Sent: Thu, Nov 30, 2017 04:07 PM
Subject: Re: [tkf/emacs-ipython-notebook] Jupyter seems to only print out the last out of all cells (#194)
<div id="AOLMsgPart_2_939576b2-f3a6-43db-844c-bee95ff7fb34">
<div class="aolReplacedBody"><p>This is typical notebook behavior. The others did execute, but the cell only prints the result of the last evaluation to console. If you put <code>print</code> statements in front of each line, all them will print.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—
You are receiving this because you authored the thread.
Reply to this email directly, <a target="_blank" rel="noopener noreferrer" href="#194 (comment)">view it on GitHub</a>, or <a target="_blank" rel="noopener noreferrer" href="https://github.com/notifications/unsubscribe-auth/AFXWWorJd-3lvUQmZTB3PsQI92vA4VbNks5s7xj3gaJpZM4QvSro">mute the thread</a>.<img alt="" height="1" width="1" src="https://github.com/notifications/beacon/AFXWWgcfKcFx_EovSNjOmAnepf-FXnt4ks5s7xj3gaJpZM4QvSro.gif"></p>
<div>
<div>
</div>
</div>
</div>
</div>
</div>
|
Jupyter/IPython will only print the result of the last evaluation in a cell to console unless explicitly told to print the result of an evaluation by the |
Great help. Thank you!
Sent from AOL Mobile Mail
…-----Original Message-----
From: Dylan Bargteil <[email protected]>
To: tkf/emacs-ipython-notebook <[email protected]>
Cc: sirtosti <[email protected]>; Author <[email protected]>
Sent: Thu, Nov 30, 2017 09:46 PM
Subject: Re: [tkf/emacs-ipython-notebook] Jupyter seems to only print out the last out of all cells (#194)
<div id="AOLMsgPart_2_d9ff2ca0-487c-4082-a023-9f0cbe9a9177">
<div class="aolReplacedBody"><p>Jupyter/IPython will only print the result of the last evaluation in a cell to console unless explicitly told to print the result of an evaluation by the <code>print</code> command. It doesn't matter whether the expression is a Boolean or a complicated function. This is a general Jupyter/IPython behavior. As I said before, if you put <code>print</code> statements in front of each line, all of them will print. You could also split them into separate cells and all of them will print. I would highly suggest looking at a Jupyter notebook tutorial if you are confused about what's happening here.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—
You are receiving this because you authored the thread.
Reply to this email directly, <a target="_blank" rel="noopener noreferrer" href="#194 (comment)">view it on GitHub</a>, or <a target="_blank" rel="noopener noreferrer" href="https://github.com/notifications/unsubscribe-auth/AFXWWlDBFnc-8rVoj0i74s_eY12B_zBvks5s72h1gaJpZM4QvSro">mute the thread</a>.<img alt="" height="1" width="1" src="https://github.com/notifications/beacon/AFXWWrkc6lksUlYahB6pkbbevcGGnYOIks5s72h1gaJpZM4QvSro.gif"></p>
<div>
</div>
</div>
</div>
|
in this small python code , only the last result is output when use "Ctrl + enter" or cell-->"run all"
here is the little code:
"alphabetical".isupper()
"alphabetical".islower()
"alphabetical".istitle()
"alphabetial".isdigit()
False -----So, this line is the output of "alphabetial".isdigit()" and it didn't execute the other three.
The text was updated successfully, but these errors were encountered: