Re: [jupyter] How to design JupyterLab extension that reacts to pandas function calls

2018-09-18 Thread Adam Rule
com/jupyterlab/jupyterlab/issues/443 > > Seems like there could be some overlap with what you are trying to do. > > Cheers, > Michael > > On Mon, Sep 17, 2018 at 7:42 PM, Adam Rule > > wrote: > >> Great point Brian. For prototyping's sake monkey patching should be

Re: [jupyter] How to design JupyterLab extension that reacts to pandas function calls

2018-09-17 Thread Adam Rule
> started quickly and explore the problem space. > > On Mon, Sep 17, 2018 at 3:40 PM Adam Rule > > wrote: > >> I have noticed that a number of Jupyter users call df.head(), df.shape, >> df.describe(), or something similar almost every time they load or >> manip

[jupyter] How to design JupyterLab extension that reacts to pandas function calls

2018-09-17 Thread Adam Rule
I have noticed that a number of Jupyter users call df.head(), df.shape, df.describe(), or something similar almost every time they load or manipulate a dataframe to inspect what their manipulation did. I would like to develop an extension or kernel magic that prints useful information to a cell

Re: [jupyter] Add properties to Jupyter.notebook after it is sealed?

2018-01-09 Thread Adam Rule
dules are singleton so requiring the same path > or library return you the sam instance. So it might work without having to > attach sidebar to any global variable. A bit like you would attach > something to numpy, or matplotlib. > > The extension looks really cool in the gif ! &

[jupyter] Add properties to Jupyter.notebook after it is sealed?

2018-01-09 Thread Adam Rule
I am creating a Jupyter Notebook extension for research purposes that creates a sidebar where users can "hide" cells with implementation details until they wish to see them. I am doing something similar to Min's old Scratchpad

Re: [jupyter] Scrollytelling view for notebooks?

2017-12-13 Thread Adam Rule
n Tuesday, 12 December 2017 21:21:55 UTC, Adam Rule wrote: >> >> I think a scrollytelling approach could be used not only for >> presentations, but also when working in the notebook itself. Imagine being >> able to "hide" cells so you get a shortened notebook with ju

[jupyter] Redirect Cell Events to another Cell

2017-12-12 Thread Adam Rule
I am experimenting with a notebook extension that enables a 2-panel view. The left panel is for the high level overview cells, and the right panel for implementation details (see the link for an example gif). You can think of it as a new way of 'hiding' cells w

Re: [jupyter] Scrollytelling view for notebooks?

2017-12-12 Thread Adam Rule
I think a scrollytelling approach could be used not only for presentations, but also when working in the notebook itself. Imagine being able to "hide" cells so you get a shortened notebook with just the high level narrative and graphs, but when you scroll past these, you can see the hidden cells

[jupyter] Fork or Revert Kernel?

2017-11-02 Thread Adam Rule
I am modifying Min's Scratchpad extension and am wondering if there is a way to make it so code executed in the scratchpad does not impact the main notebook. As it is, if I mess with parameters in the scratc

Re: [jupyter] Run code when cells finished executing

2017-10-05 Thread Adam Rule
wrote: > > > Hi Adam, > > Did you ever get a workaround for this for earlier versions of Jupyter? > > Thanks > > Jake > > On Thursday, April 6, 2017 at 7:34:51 PM UTC+1, Adam Rule wrote: >> >> Just to close the loop, finished_execute.CodeCell executes j

Re: [jupyter] How to call nbdime's diff options in python

2017-07-11 Thread Adam Rule
= nbformat.read(bfn, as_version=4) > with only_diff_targets(outputs=True): > diff = nbdime.diff_notebooks(a, b) > nbdime.prettyprint.pretty_print_notebook_diff(afn, bfn, a, diff) > > > On Mon, Jul 10, 2017 at 7:52 PM, Adam Rule > > wrote: > > I noticed there are console commands for control

[jupyter] How to call nbdime's diff options in python

2017-07-10 Thread Adam Rule
I noticed there are console commands for controlling which part of the notebook to diff using nbdime (source, output, metadata, attachments). How do I set these options when calling nbdime.diff() from python rather than the

Re: [jupyter] Which version of python runs the Notebook Server?

2017-07-06 Thread Adam Rule
- > M > > > On Wed, Jul 5, 2017 at 10:40 PM, Adam Rule > > wrote: > > I have been trying to help some colleagues install an extension that > > includes both a server and nb component and have had some trouble when > they > > have more than one version of py

[jupyter] Which version of python runs the Notebook Server?

2017-07-05 Thread Adam Rule
I have been trying to help some colleagues install an extension that includes both a server and nb component and have had some trouble when they have more than one version of python, or of the notebook, on their machine. Is there a way to tell from a notebook which version of python is running

[jupyter] Re: How to configure setup.py for server extension and nbextension

2017-06-23 Thread Adam Rule
examples/Notebook/Distributing%20Jupyter%20Extensions%20as%20Python%20Packages.ipynb On Friday, June 23, 2017 at 12:23:50 PM UTC-7, Adam Rule wrote: > > Hi, > > I am following the instructions in the documentation for distributing a > server extension and nbextension in a single python mo

[jupyter] How to configure setup.py for server extension and nbextension

2017-06-23 Thread Adam Rule
Hi, I am following the instructions in the documentation for distributing a server extension and nbextension in a single python module and am having difficulty getting my nbextension .js files to install when I run `python setup.py install`. I think I need to do something in my setup.py or Man

[jupyter] Re: Need help with custom.js

2017-05-22 Thread Adam Rule
;t work too. > > It seems to me that API changed. And some trigger stopped to work (for > example https://github.com/jupyter/notebook/issues/2403). > And it seems to me it's the main cause my old script stoped to work. > > Best regards, Andrey. > > > > > понедельник,

[jupyter] Re: Need help with custom.js

2017-05-08 Thread Adam Rule
Hi Andrey, Are you seeing any errors in your browser console when you have a notebook open? That could help us diagnose the problem. If you are using Google Chrome, you can find the console in your Developer Tools, which you can access by right clicking and selecting "Inspect" or the View > De

Re: [jupyter] Tracking when cells are edited, but not executed

2017-05-03 Thread Adam Rule
cells in order to connect to > the events of each CM instance, I suspect. > > -Min > > On Thu, Apr 27, 2017 at 5:25 PM, Adam Rule > > wrote: > > I'm working on a notebook + server extension that keeps a detailed history >> of notebook edits. I would like to track

[jupyter] Tracking when cells are edited, but not executed

2017-04-27 Thread Adam Rule
I'm working on a notebook + server extension that keeps a detailed history of notebook edits. I would like to track changes that occur when users edit a cell, but don't execute it. I'm looking for an event that gets triggered (or a function that gets called) after a user navigates away from a ce

Re: [jupyter] How to run forked version of notebook when testing contributions?

2017-04-20 Thread Adam Rule
sometimes when mixing anaconda and pip. Try running `pip > uninstall notebook` (repeatedly, until it says you don't have it anymore). > Then try starting again with `pip install -e .`. > > -Min > > > > On Thu, Apr 20, 2017 at 1:49 AM, Adam Rule > > wrot

Re: [jupyter] How to run forked version of notebook when testing contributions?

2017-04-19 Thread Adam Rule
ely visible changes to how menus are named, and no luck. On Wednesday, April 19, 2017 at 4:38:55 PM UTC-7, Adam Rule wrote: > > Could it be something with my branches? For example, I have a development > branch I'm working on, but could "pip install -e ." be pulling from ma

Re: [jupyter] How to run forked version of notebook when testing contributions?

2017-04-19 Thread Adam Rule
Could it be something with my branches? For example, I have a development branch I'm working on, but could "pip install -e ." be pulling from master? On Wednesday, April 19, 2017 at 3:00:07 PM UTC-7, Adam Rule wrote: > > I am attempting to change actions.js and notebook

Re: [jupyter] How to run forked version of notebook when testing contributions?

2017-04-19 Thread Adam Rule
ut if > not, other tricks include trying with a different browser from normal, > opening it in private/incognito mode, or starting the notebook server on a > different port from the default (e.g. --port 8931). > > Thomas > > On 19 April 2017 at 19:56, Adam Rule > > wrote

[jupyter] How to run forked version of notebook when testing contributions?

2017-04-19 Thread Adam Rule
I'm attempting to Contribute to the Notebook and have followed the instructions for forking, branching, and making changes to the codebase. Howe

Re: [jupyter] Run code when cells finished executing

2017-04-06 Thread Adam Rule
UTC-7, takowl wrote: > > On 5 April 2017 at 16:55, Adam Rule > > wrote: > >> I'm running version 4.1.0 so I'll update to 5.0 and check if >> finished_execute.CodeCell gets thrown. If not, I'll file an issue. >> > > Thanks Adam :-) > -- You

Re: [jupyter] Run code when cells finished executing

2017-04-05 Thread Adam Rule
I'm running version 4.1.0 so I'll update to 5.0 and check if finished_execute.CodeCell gets thrown. If not, I'll file an issue. On Wednesday, April 5, 2017 at 7:11:36 AM UTC-7, takowl wrote: > > On 4 April 2017 at 23:34, Adam Rule > > wrote: > >> My probl

[jupyter] Run code when cells finished executing

2017-04-04 Thread Adam Rule
Hello, I am writing both a notebook extension and a server extension to track changes to notebooks over time. *How can I run code after an action has been applied?* In the notebook extension, I'm attempting to execute blocks of code both before and after Jupyter performs certain actions (e.g.,

Re: [jupyter] How do I install a Jupyter Notebook Server extension?

2017-02-24 Thread Adam Rule
Much thanks! On Friday, February 24, 2017 at 10:27:29 AM UTC-8, takowl wrote: > > On 24 February 2017 at 18:18, Thomas Kluyver > wrote: > >> Thanks for the heads up, I'll update the docs to use nbserver_extensions. >> > > https://github.com/jupyter/notebook/pull/2224 > -- You received this mess

[jupyter] How do I install a Jupyter Notebook Server extension?

2017-02-24 Thread Adam Rule
I am attempting to follow the directions in the Documentation for writing and installing a custom server extension, but have encountered several issues. *How do I install a server exte