Sign in

Not a member? | Forgot your Password?

Search blogs

Search tips

Free PDF Downloads

A Quadrature Signals Tutorial: Complex, But Not Complicated

Understanding the 'Phasing Method' of Single Sideband Demodulation

Complex Digital Signal Processing in Telecommunications

Introduction to Sound Processing

C++ Tutorial

Introduction of C Programming for DSP Applications

Fixed-Point Arithmetic: An Introduction

Cascaded Integrator-Comb (CIC) Filter Introduction

Articles by category

IIR Filter Design Software

See Also

Embedded SystemsFPGA

Blogs > Christopher Felton > Curse you, iPython Notebook!

Christopher Felton (contact)
Christopher Felton's current favorite projects are implementing DSP digital circuits with MyHDL for FPGAs. More information @ LinkedIn. Follow @FeltonChris !func...show full bio

Would you like to be notified by email when cfelton publishes a new blog?

  




Pageviews: 3571

Curse you, iPython Notebook!

Posted by Christopher Felton on May 1 2012 under Basics | Python   

 

First, I think ipython is great. I use it daily and always have an ipython terminal open.  But just recently, I was showing off the ipython 0.12 notebook and in the process created a lengthy example while demonstrating the cool features of the ipython notebook.  The example included LaTeX equations, plots, etc.  Since the notebook session was on something of relevance I decided to clean up the session and use it for the beginning of a report.

ipython_session

Here's where things turn bad.  Tragically I did not understand the sessions were not automatically saved in any shape or form.  I had closed my browser and later return to finish the example ... and nothing!  The notebook was empty, it was all gone!  It felt like some horrible story older colleagues often recite about early computer problems.  Even though my fingers auto keystroke C-s every 5 seconds it didn't help.  The frequent keystrokes didn't matter because the keystrokes are mapped to the browsers save function which tries to save a static version of the current session.  You have to explicitly click the "save" button at the top of the page.

save_button

Luckily in my case I had based most of the session off a python script I had earlier written.  I only lost the "text" and "equations" I had entered in the ad hoc session.  Even so, it never feels good to redo work that has already been done once.

With all fairness this was an U.S.E.R error there was a mechanism to save I just didn't notice it.  Other than no auto periodic saves/backups and the weird PDF generation (plots always span multiple pages) the ipython notebook is great.  Warning to any and all ipython notebook users.  Click the "save" button on top of the session!.

 

Update 2 May 2012

It has come to my attention that the current development branch of ipython has mapped the C-s to save the session!  Also, the autosave is on the feature list.  As with most FOSS projects I am lucky that ipython exists and I can use it.  With any new tool there is a learning curve (my case with how sessions are saved).  As mentioned the ipython tool is great and I look forward to using the tool and future releases.  For any new potential users don't hesitate to use ipython notebook you will find much to like about the tool.



Rate this article:
0
Rating: 0 | Votes: 0
 
   
 
posted by Christopher Felton
Christopher Felton's current favorite projects are implementing DSP digital circuits with MyHDL for FPGAs. More information @ LinkedIn.


Previous post by Christopher Felton: scipy.signal calling all developers
Next post by Christopher Felton: Python scipy.signal IIR Filter Design
all articles by Christopher Felton

Comments / Replies


jaidevd
Said:
And I thought I was paranoid for compulsively saving the notebook after every command. :|
2 years ago
+1
Reply
Sorry, you need javascript enabled to post any comments.
cfelton
Said:
@jaidevd Definitely not paranoid. Best of my knowledge this has been fixed in 0.13 (I should check). Also note, I had fun with this post at the expense of ipython. I think ipython is great and the team that develops ipython does a terrific job! Ipython is one of the indispensable tools I use daily.
2 years ago
0
Reply
Sorry, you need javascript enabled to post any comments.
Roberto
Said:
"Save" only made sense years ago when disk space was expensive. Every application should always auto save and keep an infinite undo (a revision history).

That been said, I love IPython!
2 years ago
+1
Reply
Sorry, you need javascript enabled to post any comments.
cfelton
Said:
I also enjoy ipython very much! This has been fixed in the 0.13
version both periodic save and key mapping to common save
key-strokes. I have been using the /ipython notebook/ more but I
still use the /ipython qtconsole/ most often.
2 years ago
0
Reply
Sorry, you need javascript enabled to post any comments.
Sorry, you need javascript enabled to post any comments.