[IPython-User] Untitled notebooks
Wed Jan 25 00:22:34 CST 2012
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.
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
> <email@example.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
>> 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.
>>>> IPython-User mailing list
>>> Brian E. Granger
>>> Cal Poly State University, San Luis Obispo
>>> firstname.lastname@example.org and email@example.com
>>> IPython-User mailing list
More information about the IPython-User