[IPython-User] Untitled notebooks

Zoltán Vörös zvoros@gmail....
Wed Jan 25 00:22:34 CST 2012


Hi Brian,

Could, perhaps, all unsaved notebooks removed from disc on a clean exit? 
Along the lines that Fernando and Min suggested for the clean-up 
operation of the autosave function.
Cheers,
Zoltán


On 01/24/2012 10:59 PM, Brian Granger wrote:
> What if the File menu had a "Delete Notebook" option that deleted the
> current notebook and redirected you back to the notebook dashboard?
>
> On Tue, Jan 24, 2012 at 1:52 PM, Cameron Hayne
> <cameron.hayne@dftmicrosystems.com>  wrote:
>>> We want to force users to be explicit about deleting notebooks.
>>
>> The problem I have with this is that it isn't obvious at all to me how to do
>> this. (in iPython 0.12)
>> I start iPython in notebook mode and I get a browser window. I click on the
>> New Notebook button and get a new window.
>> When I'm finished with my one-off calculations, I'd like to dispose of this
>> notebook but I don't see any button to do that.
>> So I quit the browser and control-C the kernel and then I get the build-up
>> of Untitled notebooks that Zoltán mentioned.
>> What am I missing?
>> ... Cameron
>> --
>> Cameron Hayne
>> hayne@sympatico.ca
>>
>>
>> On 24-Jan-12, at 4:32 PM, Brian Granger wrote:
>>>> I have noticed that whenever I try to create a new notebook, the
>>>> notebook is written to disk immediately, even if I don't ask ipython to
>>>> do that. This has the undesired effect that, if I close this project
>>>> without saving it, and then creating a new one, well, a new one will be
>>>> created. So, very soon, I have Untitled0 to Untitled22, while I didn't
>>>> want to save anything. (The situation that I refer to here is when I use
>>>> these notebooks as a scratch paper, for a quick calculation, which
>>>> should not be preserved.) My question is whether this is the intended
>>>> behaviour. If not, is this something that could be changed?
>>>
>>> This is by design.  There are a couple of reasons for this:
>>>
>>> * If makes it easier to ensure that Untitled notebooks have unique
>>> names and notebooks IDs.
>>> * In the long run we will move in the direction of automatically
>>> saving and version control.  In that context, you want to make sure
>>> that the notebook is always persisted to disk, even if the user hasn't
>>> asked for that to happen yet.
>>> * We want to force users to be explicit about deleting notebooks.
>>> * It simplifies the implementation on a number of fronts.
>>> * The second a notebook is opened, the server needs to track it,
>>> because a kernel has to be started for it.  It is not really possible
>>> for there to be a notebook that the server is unaware of.  We use the
>>> notebook as a handle on the kernel.
>>>
>>> Cheers,
>>>
>>> Brian
>>>
>>>> Cheers,
>>>> Zoltán
>>>> _______________________________________________
>>>> IPython-User mailing list
>>>> IPython-User@scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>>
>>> --
>>> Brian E. Granger
>>> Cal Poly State University, San Luis Obispo
>>> bgranger@calpoly.edu and ellisonbg@gmail.com
>>> _______________________________________________
>>> IPython-User mailing list
>>> IPython-User@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>>
>>
>>
>>
>>
>
>


More information about the IPython-User mailing list