[jupyter] Restart snippet numbering in the middle of a notebook?

2017-12-18 Thread insearchofanswers87
If I am writing a book chapter with many sections, is there any way for me to start over with snippet #1 at the beginning of each section? Or do I need to use separate notebooks for each section to accomplish that? So basically, I want to forget about the snippets earlier in the notebook and be

Re: [jupyter] Re: Restart snippet numbering in the middle of a notebook?

2017-12-26 Thread insearchofanswers87
Thanks Fernando! On Wednesday, 20 December 2017 05:33:30 UTC-5, Fernando Perez wrote: > > On Mon, Dec 18, 2017 at 10:48 PM, Roland Weber > wrote: > >> Restart the kernel before each section. That will clear all state in >> memory, and reset the execution count >> > > You can also force that numb

[jupyter] Re: Restart snippet numbering in the middle of a notebook?

2017-12-26 Thread insearchofanswers87
But once I ship out the notebook to others, they'd need to do the same as they execute cells, correct? On Tuesday, 19 December 2017 01:48:54 UTC-5, Roland Weber wrote: > > Restart the kernel before each section. That will clear all state in > memory, and reset the execution count. > -- You r

Re: [jupyter] Re: Restart snippet numbering in the middle of a notebook?

2017-12-26 Thread insearchofanswers87
Can we programmatically have the notebook "forget" all prior code snippets as well so we effectively have a "clean" environment for a new section? On Wednesday, 20 December 2017 05:33:30 UTC-5, Fernando Perez wrote: > > On Mon, Dec 18, 2017 at 10:48 PM, Roland Weber > wrote: > >> Restart the ker

Re: [jupyter] Re: Restart snippet numbering in the middle of a notebook?

2018-01-03 Thread insearchofanswers87
I agree. That's what I am doing now. As we go to review with our book, I am curious whether instructors/students will find that burdensome, which is why I am asking about resets in a single notebook. On Thursday, 28 December 2017 10:24:41 UTC-5, Jason Grout wrote: > > You might consider putting

Re: [jupyter] Re: Restart snippet numbering in the middle of a notebook?

2018-01-03 Thread insearchofanswers87
Thanks. On Tuesday, 26 December 2017 14:25:42 UTC-5, M Pacer wrote: > > Also, if you wanted a static version that would drop all those cells in > addition to a tag you could use the regexRemovePreprocessor (with an > nbconvert config option) to automatically remove all cells that match a > regu

[jupyter] Re: Restart snippet numbering in the middle of a notebook?

2018-01-03 Thread insearchofanswers87
Thanks Roland. On Wednesday, 27 December 2017 01:44:00 UTC-5, Roland Weber wrote: > > On Tuesday, December 26, 2017 at 3:42:23 PM UTC+1, insearcho...@gmail.com > wrote: >> >> But once I ship out the notebook to others, they'd need to do the same as >> they execute cells, correct? >> > > Once you

[jupyter] Protected Jupyter Notebooks

2018-01-04 Thread insearchofanswers87
Are there any mechanisms for protecting content in Jupyter Notebooks? I'd like to create a Jupyter version of a textbook I am working on and need to consider piracy of the content. I am guessing that since notebooks are simply JSON files, the answer to this question is no. -- You received th

Re: [jupyter] Protected Jupyter Notebooks

2018-01-06 Thread insearchofanswers87
Thanks. I did not think there would be. On Thursday, 4 January 2018 12:22:06 UTC-5, takowl wrote: > > No, there's no DRM-like facilities to prevent people copying notebooks > freely, and we're unlikely to work on any. > > On 4 January 2018 at 17:14, > wrote: > >> Are there any mechanisms for prot

[jupyter] Re: Protected Jupyter Notebooks

2018-01-06 Thread insearchofanswers87
:-) Yes, but as an author whose content is extensively pirated worldwide, I know that copyright unfortunately does not mean anything to a many people. On Thursday, 4 January 2018 19:07:13 UTC-5, Lawrence D’Oliveiro wrote: > > On Friday, January 5, 2018 at 6:14:54 AM UTC+13, insearcho...@gmail.co

[jupyter] %run magic and script containing Matplotlib FuncAnimation

2018-01-15 Thread insearchofanswers87
I have a bit of a strange issue. I have a Matplotlib FuncAnimation that runs correctly in a standalone script in IPython. It also runs correctly if I copy the entire script into a notebook cell and run it after the following magic %matplotlib notebook However, if I use the following two m

[jupyter] JupyterLab support for %matplotlib notebook?

2018-03-21 Thread insearchofanswers87
Will there be JupyterLab support for animations via %matplotlib notebook Right now, using this and attempting a FuncAnimation yields a message saying JavaScript is disabled. -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscr

Re: [jupyter] JupyterLab support for %matplotlib notebook?

2018-03-24 Thread insearchofanswers87
The notebook is loaded from my local computer. I am not putting JavaScript in it myself. I am simply trying to use a Matplotlib FuncAnimation in the notebook and that, of course, is being translated into JavaScript. Works fine in the old interface, but is disabled in JupyterLab. On Wednesday, 2