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

2017-04-20 Thread Adam Rule
That worked. For documentation's sake, I had to `pip uninstall notebook` 
and then `conda uninstall notebook` before I could install notebook from my 
forked and cloned notebook repository using `pip install -e .`. 

On Thursday, April 20, 2017 at 1:18:58 AM UTC-7, Min RK wrote:
>
> You are doing the right things: `pip install -e .` once and `npm run 
> build` to update js/css should be all you need.
>
> If all of those changes aren't showing up, it leads me to think that 
> perhaps a different installation of the notebook is actually in use. This 
> can happen 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  > wrote:
>
>> I just tried switching back to master, making changes, and rerunning 'pip 
>> install -e .' and 'npm run build' and my changes are still not showing up. 
>> I also uninstalled any version of jupyter notebook I had using "pip 
>> uninstall notebook" in case there was a conflict with the version I had 
>> already downloaded, and still no luck. Even tried "git clean -xfd" before 
>> 'pip install -e .' and 'npm run build' and my changes are still not showing 
>> up.
>>
>> I have also tried changing some of the template HTML (i.e. notebook.html) 
>> for immediately 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 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.js so that the three 
 paste items in the Edit menubar call a paste action rather than the paste 
 function directly (issue #2415 
 ). 

 I have run "pip install -e ." in the folder containing the forked and 
 cloned code and I do have node and npm installed have been running "npm 
 run build" every time I may changes to the .js or .css codebase.

 When I run "which jupyter notebook" in my terminal I get "
 /anaconda/bin/jupyter" when I would have expected it to point to where 
 I have the cloned code (e.g. ~/Code/notebook). Do I have the wrong mental 
 model of where the code is being executed from?

 On Wednesday, April 19, 2017 at 1:38:12 PM UTC-7, takowl wrote:
>
> Hi Adam,
>
> Do you have the necessary Javascript tools set up to rebuild 
> Javascript and CSS if you're changing those pieces?
> http://jupyter-notebook.readthedocs.io/en/latest/contributing.html
>
> Changes to frontend stuff are also sometimes hidden by the browser 
> cache. Usually pressing Ctrl-F5 a few times is enough to clear the cache, 
> but 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:
>
>> I'm attempting to Contribute 
>>  
>> to the Notebook and have followed the instructions 
>> 
>>  
>> for forking, branching, and making changes to the codebase.
>>
>> However, when I run `jupyter notebook` in my terminal, it seems to 
>> still launch my previously installed version of the notebook software, 
>> not 
>> the modified version I've downloaded and am editing. How do I run this 
>> modified version so I can visually check that my changes are producing 
>> the 
>> behavior I expect?
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to jupyter+u...@googlegroups.com.
>> To post to this group, send email to jup...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jupyter/ec9e5f23-d9e2-4238-a053-333d1c52469b%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to 

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

2017-04-19 Thread Adam Rule
I just tried switching back to master, making changes, and rerunning 'pip 
install -e .' and 'npm run build' and my changes are still not showing up. 
I also uninstalled any version of jupyter notebook I had using "pip 
uninstall notebook" in case there was a conflict with the version I had 
already downloaded, and still no luck. Even tried "git clean -xfd" before 
'pip install -e .' and 'npm run build' and my changes are still not showing 
up.

I have also tried changing some of the template HTML (i.e. notebook.html) 
for immediately 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 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.js so that the three 
>> paste items in the Edit menubar call a paste action rather than the paste 
>> function directly (issue #2415 
>> ). 
>>
>> I have run "pip install -e ." in the folder containing the forked and 
>> cloned code and I do have node and npm installed have been running "npm 
>> run build" every time I may changes to the .js or .css codebase.
>>
>> When I run "which jupyter notebook" in my terminal I get "
>> /anaconda/bin/jupyter" when I would have expected it to point to where I 
>> have the cloned code (e.g. ~/Code/notebook). Do I have the wrong mental 
>> model of where the code is being executed from?
>>
>> On Wednesday, April 19, 2017 at 1:38:12 PM UTC-7, takowl wrote:
>>>
>>> Hi Adam,
>>>
>>> Do you have the necessary Javascript tools set up to rebuild Javascript 
>>> and CSS if you're changing those pieces?
>>> http://jupyter-notebook.readthedocs.io/en/latest/contributing.html
>>>
>>> Changes to frontend stuff are also sometimes hidden by the browser 
>>> cache. Usually pressing Ctrl-F5 a few times is enough to clear the cache, 
>>> but 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:
>>>
 I'm attempting to Contribute 
  to 
 the Notebook and have followed the instructions 
 
  
 for forking, branching, and making changes to the codebase.

 However, when I run `jupyter notebook` in my terminal, it seems to 
 still launch my previously installed version of the notebook software, not 
 the modified version I've downloaded and am editing. How do I run this 
 modified version so I can visually check that my changes are producing the 
 behavior I expect?

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Project Jupyter" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to jupyter+u...@googlegroups.com.
 To post to this group, send email to jup...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jupyter/ec9e5f23-d9e2-4238-a053-333d1c52469b%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/8ac39ce6-0c71-4812-8808-73023e4d4bc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.js so that the three 
> paste items in the Edit menubar call a paste action rather than the paste 
> function directly (issue #2415 
> ). 
>
> I have run "pip install -e ." in the folder containing the forked and 
> cloned code and I do have node and npm installed have been running "npm 
> run build" every time I may changes to the .js or .css codebase.
>
> When I run "which jupyter notebook" in my terminal I get "
> /anaconda/bin/jupyter" when I would have expected it to point to where I 
> have the cloned code (e.g. ~/Code/notebook). Do I have the wrong mental 
> model of where the code is being executed from?
>
> On Wednesday, April 19, 2017 at 1:38:12 PM UTC-7, takowl wrote:
>>
>> Hi Adam,
>>
>> Do you have the necessary Javascript tools set up to rebuild Javascript 
>> and CSS if you're changing those pieces?
>> http://jupyter-notebook.readthedocs.io/en/latest/contributing.html
>>
>> Changes to frontend stuff are also sometimes hidden by the browser cache. 
>> Usually pressing Ctrl-F5 a few times is enough to clear the cache, but 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:
>>
>>> I'm attempting to Contribute 
>>>  to 
>>> the Notebook and have followed the instructions 
>>> 
>>>  
>>> for forking, branching, and making changes to the codebase.
>>>
>>> However, when I run `jupyter notebook` in my terminal, it seems to still 
>>> launch my previously installed version of the notebook software, not the 
>>> modified version I've downloaded and am editing. How do I run this modified 
>>> version so I can visually check that my changes are producing the behavior 
>>> I expect?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Project Jupyter" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to jupyter+u...@googlegroups.com.
>>> To post to this group, send email to jup...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jupyter/ec9e5f23-d9e2-4238-a053-333d1c52469b%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/ac524058-33ba-40d4-86dd-6968b405d0a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-04-19 Thread Adam Rule
I am attempting to change actions.js and notebook.js so that the three 
paste items in the Edit menubar call a paste action rather than the paste 
function directly (issue #2415 
). 

I have run "pip install -e ." in the folder containing the forked and 
cloned code and I do have node and npm installed have been running "npm run 
build" every time I may changes to the .js or .css codebase.

When I run "which jupyter notebook" in my terminal I get "
/anaconda/bin/jupyter" when I would have expected it to point to where I 
have the cloned code (e.g. ~/Code/notebook). Do I have the wrong mental 
model of where the code is being executed from?

On Wednesday, April 19, 2017 at 1:38:12 PM UTC-7, takowl wrote:
>
> Hi Adam,
>
> Do you have the necessary Javascript tools set up to rebuild Javascript 
> and CSS if you're changing those pieces?
> http://jupyter-notebook.readthedocs.io/en/latest/contributing.html
>
> Changes to frontend stuff are also sometimes hidden by the browser cache. 
> Usually pressing Ctrl-F5 a few times is enough to clear the cache, but 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:
>
>> I'm attempting to Contribute 
>>  to 
>> the Notebook and have followed the instructions 
>> 
>>  
>> for forking, branching, and making changes to the codebase.
>>
>> However, when I run `jupyter notebook` in my terminal, it seems to still 
>> launch my previously installed version of the notebook software, not the 
>> modified version I've downloaded and am editing. How do I run this modified 
>> version so I can visually check that my changes are producing the behavior 
>> I expect?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jupyter+u...@googlegroups.com .
>> To post to this group, send email to jup...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jupyter/ec9e5f23-d9e2-4238-a053-333d1c52469b%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/5490b826-3f0e-44e5-9560-45e4deda8197%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-04-19 Thread Thomas Kluyver
Hi Adam,

Do you have the necessary Javascript tools set up to rebuild Javascript and
CSS if you're changing those pieces?
http://jupyter-notebook.readthedocs.io/en/latest/contributing.html

Changes to frontend stuff are also sometimes hidden by the browser cache.
Usually pressing Ctrl-F5 a few times is enough to clear the cache, but 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:

> I'm attempting to Contribute
>  to the
> Notebook and have followed the instructions
> 
> for forking, branching, and making changes to the codebase.
>
> However, when I run `jupyter notebook` in my terminal, it seems to still
> launch my previously installed version of the notebook software, not the
> modified version I've downloaded and am editing. How do I run this modified
> version so I can visually check that my changes are producing the behavior
> I expect?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+unsubscr...@googlegroups.com.
> To post to this group, send email to jupyter@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/ec9e5f23-d9e2-4238-a053-333d1c52469b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAOvn4qht0uNbeUqMMBzuh4UkiY4RKrAEOgrq2NaZuYr1g5z07g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-04-19 Thread s...@draves.org
It depends on what codebase you are changing, but normally you have to
install your changes into your working environment before they take effect.
The README from your clone should have instructions. Commonly it would be
"pip install -e ."
If you can say more about what you have done (what did you clone, what
files did you edit, etc) then maybe we can help more.


On Wed, Apr 19, 2017 at 2:56 PM, Adam Rule  wrote:

> I'm attempting to Contribute
>  to the
> Notebook and have followed the instructions
> 
> for forking, branching, and making changes to the codebase.
>
> However, when I run `jupyter notebook` in my terminal, it seems to still
> launch my previously installed version of the notebook software, not the
> modified version I've downloaded and am editing. How do I run this modified
> version so I can visually check that my changes are producing the behavior
> I expect?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+unsubscr...@googlegroups.com.
> To post to this group, send email to jupyter@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/ec9e5f23-d9e2-4238-a053-333d1c52469b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
BeakerNotebook.com
ScottDraves.com 
@Scott_Draves 

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAMaD%2Bf6So0iT08bBR9-L1pJ-qi49WyPi4g3Meh%2Bg4hZ3Ohm-0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.