Repository navigation
document change for ipython embedding global namespace - #10891
Conversation
| operate with your variables, analyze them, etc. For example, if you run the | ||
| following code snippet: | ||
|
|
||
| ``` python |
There was a problem hiding this comment.
I don't think this syntax works in restructuredtext. To make a code block, use a double colon and indent it:
following code snippet::
import IPython
a = 42
IPython.embed()(If you've already tried building the docs and the markdown-style code blocks work, that's fine, of course)
|
Thanks for the PR @lesley2958, and you are right the documentation was inaccurate; we appreciate the time you took to write that up with example ! As @takluyver pointed out this document is not in markdown but RST. Markdown is great for small self contained document but RST give us way more flexibility, so you should use I fixed that for you and pushed a new commit on your branch, and now that's look good. We'll let you some time to look at the changes we made to your branch, and if all is clear we can get that in to have this brand new documentation to our end users. I also realize that the email you use for your git commit does not match the email you use with GitHub and might be an email autogenerated from your username/host name. This means that you may not get due credit in the GitHub UI for your contribution. Do you want guidance to fix this; or is it ok as is ? |
|
@Carreau @takluyver thanks for noticing the RST syntax issue, it slipped my notice |
We should get travis to build the docs to check all is right. |
|
Great idea |
|
|
||
| Running a file with the above code can lead to the following session:: | ||
|
|
||
| >>> IPython.embed() |
There was a problem hiding this comment.
Shouldn't this say do() rather than IPython.embed()?
| print(a) | ||
|
|
||
| Now if call the function and complete the state changes as we did above, the | ||
| value `42` will be returned. Again, this is because it's not in the global |
There was a problem hiding this comment.
Nitpick: the value is printed - there's no return statement.
|
A couple more comments inline, but I think this mostly looks good. |
|
Ping @lesley2958 there's a couple of comments remaining to be addressed, if you've got a moment to come back to this. |
|
@Carreau hmm, not sure what you mean about the email! new pull request is submitted though -- sorry about the lateness, got caught up with midterms, projects, and finals |
No worries, sorry to be unclear, if you issue a As you can see your email is set to This also lead in the GitHub UI to "Anonymous" commits: If you had setup git with your actual email you signed in with github it would show as follow: Correctly crediting you as the author. Usually on your Machine you want to follow these instructions to correctly attach your name and email to commits. Once this is done we can show you how to "fix" your already existing commits so that they appear as yours. This is not important for us, but if you want your open-source contributions to be more visible for your professional career, it may be something to consider setting.
No need to apologies for the delay, we're all busy and this is good work. As a small note, we tend to not merge master branch into feature branch to get a more linear history. So this PR may need a rebase. We can do it for you if you are still unfamiliar with advance git techniques, or can guide you through doing it. |
|
@Carreau thanks so much! I went through the instructions so I can go ahead and fix the already existing commits! |
|
Great! Let us know if you need extra guidance!
…On Jan 5, 2018 19:55, "Lesley Cordero" ***@***.***> wrote:
@Carreau <https://github.com/carreau> thanks so much! I went through the
instructions so I can go ahead and fix the already existing commits!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10891 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUez5c2s2W92HQD_fzjXwwq7-wm7d7iks5tHnANgaJpZM4QaIQW>
.
|
|
Here is what I did Optional to be sure you are at this PR head: The head of this branch is |
|
@Carreau when I |
|
You should not have to edit the graphs, they are there mostly to see the
history. The rebased will allow you to edit the commits and change the
value. What do you see when you issue a $ git log --graph ? We can also try
to debug that live on Gitter depending on your timezone.
…On Jan 7, 2018 03:27, "Lesley Cordero" ***@***.***> wrote:
@Carreau <https://github.com/carreau> when I git log --graph , I'm unable
to edit the parts you highlighted. Is there a command I should be using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10891 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUezxgs8ivXEaP7j_cjpTdkpKpleqJbks5tICuVgaJpZM4QaIQW>
.
|
|
@Carreau i'm on EST! I retried the steps and got to |
|
You probably forgot the We can try to see that on Gitter (I'm at European time right no so am 7h later than you). |
|
Thanks @lesley2958 ! And sorry it took so long to get this merged. |



No description provided.