datadave / GADS9-NYC-Spring2014-Students

Student repo for Spring 2014 Data Science Course at GA NYC
4 stars 22 forks source link

Tech issue: "ipython notebook" command crashes GitHub shell #70

Closed jdleg closed 10 years ago

jdleg commented 10 years ago

The command works, but the GitHub shell never returns to a prompt. Typing CTRL-C doesn't help.

jrcarli commented 10 years ago

@jdleg - I'll try to catch up with you before or after class on this. I noticed something similar when running "ipython notebook" from the regular Windows command prompt. Maybe not ideal, but can you at least close the entire window to shut down the notebook? Make sure you save your work first!

jrcarli commented 10 years ago

@jdleg had a good suggestion to create a living document that lists all (many of) the technologies we are using in class. This would be a concise reference manual describing what something is used for, how to launch it, etc. I will work on this.

podopie commented 10 years ago

@jrcarli status? Anything I can do to help?

jdleg commented 10 years ago

We determined that this was a feature, rather than a flaw. Open ipython notebook from a command line prompt (not the GitHub shell), and then leave that window open and untouched for the duration of the session.

The other issue of the ipython notebook crashing my computer by the kernel never returning is very different, and has still not really been resolved. I was not aware of the "interrupt kernel" button at the time, but I have since learned that it is not always effective in stopping the kernel and restoring stability to my laptop.

jrcarli commented 10 years ago

The crashing issue sounds like a memory consumption problem. I did some research and found that ipython notebook only officially supports a handful of browsers (see the Browser Compatibility section here). Apparently Internet Explorer below version 10 is not supported. I forget what browser @jdleg uses.

@jdleg - I would be happy to try and replicate your issues on my Mac and in a Windows VM. Feel free to email your .ipynb and data files to me, or point me to them if they are on GitHub.

jdleg commented 10 years ago

Joe,

I am back in that hell in which I repeatedly try to push my files to GitHub, but either nothing or surprising things happen:

  1. git pull origin master failed to update repeatedly for about a week, but then the same command issued from the same directory for the 23rd time (by using the up arrow) mysteriously worked.

(I contacted GitHub help personnel on this one, but they could not explain it. They found no error in their logs.)

  1. Files I submitted recently appeared in datadave's lectures directory, instead of the student's directory.
  2. As of about two hours ago, files in "students.../lab submissions" in my local repository, having already been updated, had reverted to a previous version in which there were only 4 folders (lab01, lab02, lab03, project01). Another "git pull origin master" and it again pulled dozens of files that had already been on my computer to return to its current/former state (which includes lab04, lab07, other project 1 folders, etc.).
  3. I'm getting error messages when I try to resubmit my project01 files.

Jon

On Wed, Apr 30, 2014 at 4:12 PM, jrcarli notifications@github.com wrote:

The crashing issue sounds like a memory consumption problem. I did some research and found that ipython notebook only officially supports a handful of browsers (see the Browser Compatibility section herehttp://ipython.org/ipython-doc/stable/install/install.html#windows). Apparently Internet Explorer below version 10 is not supported. I forget what browser @jdleg https://github.com/jdleg uses.

@jdleg https://github.com/jdleg - I would be happy to try and replicate your issues on my Mac and in a Windows VM. Feel free to email your .ipynb and data files to me, or point me to them if they are on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/datadave/GADS9-NYC-Spring2014-Students/issues/70#issuecomment-41844465 .

jrcarli commented 10 years ago

I believe we got the git issues sorted out. @jdleg, please do let me know if you run into similar issues in the future. I'll be happy to work through them with you.

I don't believe the ipython notebook crashing issues have been resolved. The next time these problems occur, please email your .ipynb and data files to @jrcarli. I will attempt to reproduce the issues on a Windows machine and see if we can figure out a solution.

jdleg commented 10 years ago

@jrcarli https://github.com/jrcarli, We still had a github issue that you were going to write me about. I think the actual plan was for you to create a set of instructions for everyone, and then maybe send me a link just in case...

I believe it had to do with the fact that when I click to the "master" branch on my own account I see what looks like an old, un-updated version of datadave/lectures. I can access the correct, updated version on jleavitt, but the presence of both and disparity between them are confusing.

Thanks! Jon

On Sat, May 3, 2014 at 2:20 PM, jrcarli notifications@github.com wrote:

I believe we got the git issues sorted out. @jdleghttps://github.com/jdleg, please do let me know if you run into similar issues in the future. I'll be happy to work through them with you.

I don't believe the ipython notebook crashing issues have been resolved. The next time these problems occur, please email your .ipynb and data files to @jrcarli https://github.com/jrcarli. I will attempt to reproduce the issues on a Windows machine and see if we can figure out a solution.

— Reply to this email directly or view it on GitHubhttps://github.com/datadave/GADS9-NYC-Spring2014-Students/issues/70#issuecomment-42112465 .

jrcarli commented 10 years ago

Yes, I did promise you that link! Here is the Git Workflow for Windows that I was referring to. Let me know if you have questions about it.

jdleg commented 10 years ago

Joe,

Here's a sample of code that created a problem for my computer. I don't think it would have been a crash, but it took a while. When I clicked the button to interrupt, it said "interrupting kernel," but that message stuck around for a while. Finally, it said it was restarting the kernel entirely. Everything in memory was wiped, so I had to reload packages and recreate variables.

I started with this statement:

month = ['1213'] * len(Bikedata1213)

in which len(Bikedata1213) = 443966

That completed. In the next cell, I typed:

month

And that's where the delay began. Had I thought it through, maybe I would have tried:

month[0:3] # or...

month[443965]

But I'm sure I will continue to not do things like the latter in the future.

On Sat, May 3, 2014 at 4:50 PM, jrcarli notifications@github.com wrote:

Yes, I did promise you that link! Here is the Git Workflow for Windowshttps://github.com/datadave/GADS9-NYC-Spring2014-Lectures/blob/master/tips/git_workflow_for_windows.mdthat I was referring to. Let me know if you have questions about it.

— Reply to this email directly or view it on GitHubhttps://github.com/datadave/GADS9-NYC-Spring2014-Students/issues/70#issuecomment-42116095 .