From 00176dfd28720e609e609240e084ec41bd159508 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Sun, 17 Feb 2013 17:32:46 +0100 Subject: [PATCH] cleanup --- README.md | 54 +++++++++------------------------------------ js/custom.js | 33 --------------------------- slidemode/README.md | 53 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 77 deletions(-) delete mode 100644 js/custom.js create mode 100644 slidemode/README.md diff --git a/README.md b/README.md index 105e31f..8d69b84 100644 --- a/README.md +++ b/README.md @@ -1,53 +1,19 @@ -ipython-static-profiles -======================= +ipython-notebook-extensions +=========================== Some experiment with statics files. -Description of this branch -========================== - -Quick draft (again) of live slideshow for notebook for Fernando. - -Install -======= - -Clone this repo into ~/.ipython_/profile_xxx/static/ - -Restart your notebook server. - -Usage -===== - - -## setup the presentation - - * Use new Cell Toolbar menu to select "slideshow" Preset. - - * Make each cell you want to be the start of a new slide a "slide" cell. - - * Hide the Cell Toolbar. - -Fragment/Subslide/note... are not implemented in live mode yet. - -## Start the presentation - -Click on the small presentation icon in the Main Toolbar. - -Use 'play' to make the next slide appear 'fast-forward' and 'backward' are surely buggy. - -Use the 'slide control' button on the top right to enable slide navigation through keyboard. - -## Caveats - -'stop' button does not 'stop', it put the presentation on Hold. -Be sure to reload the page or to go to the end of the presentation or next press on 'start presentation' will resume where you were - - ## Usage add the following to your notebook_config c.NotebookApp.extra_static_paths = [ - '[path to this folder]/[extension_folder]' - '[path to this folder]/css_selector' + '[path to this folder]/[extension_folder]', + '[path to this folder]/css_selector', + '[path to this folder]/slidemode' ] + +link to the corresponding files in your `custom.js`, example + + $.getScript('/static/js/css_selector.js') + diff --git a/js/custom.js b/js/custom.js deleted file mode 100644 index 582a1f6..0000000 --- a/js/custom.js +++ /dev/null @@ -1,33 +0,0 @@ -$.getScript('/static/js/slide_meta.js') -$.getScript('/static/js/gist_it.js') -$.getScript('/static/js/clean_start.js') -$.getScript('/static/js/celltoolbarpresets/example.js') -$.getScript('/static/js/toggle_all_line_number.js') -$.getScript('/static/js/css_selector.js') - -/* -$([IPython.events]).on('notebook_loaded.Notebook', function(){ - IPython.toolbar.add_buttons_group([ - { - 'label' : 'run qtconsole', - 'icon' : 'ui-icon-calculator', - 'callback': function(){IPython.notebook.kernel.execute('%qtconsole')} - } - ]); -}); -*/ - -mobile_preset = [] -var edit = function(div, cell) { - var button_container = $(div); - var button = $('
').button({icons:{primary:'ui-icon-pencil'}}); - button.click(function(){ - cell.edit() - }) - button_container.append(button); -} - -IPython.CellToolbar.register_callback('mobile.edit',edit); -mobile_preset.push('mobile.edit'); - -IPython.CellToolbar.register_preset('Mobile',mobile_preset); diff --git a/slidemode/README.md b/slidemode/README.md new file mode 100644 index 0000000..105e31f --- /dev/null +++ b/slidemode/README.md @@ -0,0 +1,53 @@ +ipython-static-profiles +======================= + +Some experiment with statics files. + +Description of this branch +========================== + +Quick draft (again) of live slideshow for notebook for Fernando. + +Install +======= + +Clone this repo into ~/.ipython_/profile_xxx/static/ + +Restart your notebook server. + +Usage +===== + + +## setup the presentation + + * Use new Cell Toolbar menu to select "slideshow" Preset. + + * Make each cell you want to be the start of a new slide a "slide" cell. + + * Hide the Cell Toolbar. + +Fragment/Subslide/note... are not implemented in live mode yet. + +## Start the presentation + +Click on the small presentation icon in the Main Toolbar. + +Use 'play' to make the next slide appear 'fast-forward' and 'backward' are surely buggy. + +Use the 'slide control' button on the top right to enable slide navigation through keyboard. + +## Caveats + +'stop' button does not 'stop', it put the presentation on Hold. +Be sure to reload the page or to go to the end of the presentation or next press on 'start presentation' will resume where you were + + +## Usage + +add the following to your notebook_config + + c.NotebookApp.extra_static_paths = [ + '[path to this folder]/[extension_folder]' + '[path to this folder]/css_selector' + ]