Re: [Tutor] iPython notebook In [*]: numbering

2014-01-15 Thread Oscar Benjamin
On 15 January 2014 21:55, Steven D'Aprano wrote: > I'm glad that Eryksun was able to help, now would somebody like to > explain what was going on? > > I don't even understand the answer given. I tried entering "Kernel => > Restart" at the iPython prompt, and got a SyntaxError. IPython notebooks a

Re: [Tutor] iPython notebook In [*]: numbering

2014-01-15 Thread eryksun
On Wed, Jan 15, 2014 at 4:55 PM, Steven D'Aprano wrote: > On Wed, Jan 15, 2014 at 01:55:53PM +0100, Christoph Kukulies wrote: >> Am 14.01.2014 15:27, schrieb eryksun: >> >Did you try restarting the kernel and then recalculating the cells? >> > >> > Kernel => Restart >> > Cell => Run All

Re: [Tutor] iPython notebook In [*]: numbering

2014-01-15 Thread Steven D'Aprano
On Wed, Jan 15, 2014 at 01:55:53PM +0100, Christoph Kukulies wrote: > Am 14.01.2014 15:27, schrieb eryksun: > >On Tue, Jan 14, 2014 at 3:22 AM, Krischu > >wrote: > >>When I started I had In [0]:, In[1] etc. > >> > >>Now the notebook starts with In [2]:, In [3]: then In [9]: > >> > >>Yesterday bef

Re: [Tutor] iPython notebook In [*]: numbering

2014-01-15 Thread Christoph Kukulies
Am 14.01.2014 15:27, schrieb eryksun: On Tue, Jan 14, 2014 at 3:22 AM, Krischu wrote: When I started I had In [0]:, In[1] etc. Now the notebook starts with In [2]:, In [3]: then In [9]: Yesterday before storing and leaving the notebook I suddenly had all In[]'s marked like In [*]: Is there a

Re: [Tutor] Problems using odeint

2014-01-15 Thread Steven D'Aprano
On Wed, Jan 15, 2014 at 11:33:58AM +, Oscar Benjamin wrote: > On Wed, Jan 15, 2014 at 11:08:51AM +1100, Steven D'Aprano wrote: > > > > Unfortunately, I don't think there is anyone here who is very familiar > > with scipy. > > There's Eryksun and me at least. I think that simple scientific Pyth

Re: [Tutor] Problems using odeint

2014-01-15 Thread Oscar Benjamin
On Wed, Jan 15, 2014 at 11:08:51AM +1100, Steven D'Aprano wrote: > > Unfortunately, I don't think there is anyone here who is very familiar > with scipy. There's Eryksun and me at least. I think that simple scientific Python questions get answered round here. If the science itself or the librarie

Re: [Tutor] Euler Spoiler

2014-01-15 Thread Steven D'Aprano
On Sun, Jan 12, 2014 at 09:56:09PM -0800, Danny Yoo wrote: > Here's a sketch of how I'd attack this by considering a DP-style > approach. If you want to avoid any spoilers, please skip this > message. > > Otherwise, I'll try to be as transparent as to my thought process as I can. [snip] Nicely

Re: [Tutor] Problems using odeint

2014-01-15 Thread Oscar Benjamin
On Tue, Jan 14, 2014 at 06:40:03PM +, Grace Roberts wrote: > Hi, > I'm a python beginner, currently using scipy's 'odeint' to compute to a set > of ODEs (obtained by splitting Newton's law of gravity ma=-Gm1m2r/r^3 in two > ordinary differentials). The idea is that I'm modelling the orbit of

Re: [Tutor] Tutor Digest, Vol 115, Issue 28

2014-01-15 Thread Steven D'Aprano
On Sun, Jan 12, 2014 at 02:02:48AM -0500, Keith Winston wrote: > On Sat, Jan 11, 2014 at 7:37 PM, Alan Gauld wrote: > > In other words, think about the design of your code don't > > just type randomly. > > > I prefer the "million monkeys at a million typewriters" approach to > coding... But the

Re: [Tutor] Tutor Digest, Vol 115, Issue 28

2014-01-15 Thread Steven D'Aprano
On Sun, Jan 12, 2014 at 12:37:12AM +, Alan Gauld wrote: > As to your question. The best advice is to read what you type > carefully. > And know what you are trying to do before you type it. > In other words, think about the design of your code don't > just type randomly. That way you are less

Re: [Tutor] Problems using odeint

2014-01-15 Thread eryksun
On Wed, Jan 15, 2014 at 1:42 AM, eryksun wrote: > > The trajectory is decaying into the planet. In real life it hits the > surface. Not quite. A radius of 1.4 km is inside the planet, so that's unrealistic from the start. If it starts at the surface of Mars, at around 3,400 km, then the satellite