Re: [jupyter] Re: Updating Anaconda has broken Jupyter

2018-02-23 Thread Fernando Perez
On Thu, Feb 22, 2018 at 7:15 AM, Graham Wheeler  wrote:

> To be clear, when I said “virtualenv” I was talking about conda virtual
> environments; I was not mixing them.
>
> Possibly what happened was a pip installed package pulled in some old
> dependencies and things somehow got mixed up. I now suspect it was
> nb-mermaid, as that was the only other thing I remember installing between
> the time it worked and it broke.
>

This is my defense mechanism against that problem:

https://github.com/fperez/copip

it's hackish and I haven't taken the time to make it a clean, installable
package, but it gets the basic job of 100% isolation between conda and pip
done.  Pip is an 'overlay' atop conda, which supersedes it in import
priority but doesn't mingle in the filesystem, so any confusing side
effects are easy to clean up if they ever arise.

Cheers

f

-- 
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/CAHAreOpN9CZuX0RUD%2B1-qzQEJDc3XJxKf1f_%2BCwUJPVJCKX1Gg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Jupyter Lab and ISO 8601

2018-02-23 Thread Brian Granger
I think we are using moment.js. Not sure how I feel about showing
users ISO 8601 formatted datetimes though. It is not a particularly
human friendly datetime format. Maybe having some sort of toggle in
the UI to switch between the moment.js times and a more human friendly
variant of the ISO 8601 information? We aren't alone in using the
moment.js style date/times (GitHub does for everything).

On Thu, Feb 22, 2018 at 1:41 PM, Milos Miljkovic
 wrote:
> OK, I will open an issue. OTOH, I haven't seen the behavior you described
> for the notebook to switch to ISO date when a file is older than certain
> limit.
>
> On Thursday, February 22, 2018 at 2:23:37 PM UTC-5, Matthias Bussonnier
> wrote:
>>
>> Probably,
>>
>> If it's using moment.js it's possible, but I haven't touched that part of
>> the code base. We could do something similar as the notebook and switch to
>> iso-date when the file is older than a couple of hours/days.
>> I would suggest opening an issue.
>>
>> On 22 February 2018 at 11:15, Milos Miljkovic  wrote:
>>>
>>> Thanks Matthias! Indeed, there's a tooltip if you hover over current
>>> vague time stamp. Is there a way to make this "a xyz ago" malarkey go away
>>> and show what's in the tooltip in its place?
>>>
>>> On Thursday, February 22, 2018 at 1:49:02 PM UTC-5, Matthias Bussonnier
>>> wrote:

 I believe if you hover over the date, there should be a tooltip with the
 exact date and time.
 --
 M

 On 22 February 2018 at 10:35, Milos Miljkovic 
 wrote:
>
> Hiya,
>
> Is there a way in Jupyter Lab to display "Last modified" column in
> Files tab in ISO 8601 format? Current format of "a xyz ago" is utterly
> useless. If there isn't a way to do this, where should I have a peek for a
> PR.
>
> Cheers,
>
> Miloš.
>
> --
> 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/4330075a-a9f0-4430-8344-107d44da3dd8%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+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/41710833-158a-41fa-9acc-2002f1ed1e48%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/fcbc4bbb-8d0d-453c-97ff-b48c64ae312c%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgran...@calpoly.edu and elliso...@gmail.com

-- 
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/CAH4pYpSkJv0hPtuuimo2m1CwvbPzRo6QTEWqGbTS1TGEw-7%2B9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Time Travel Analysis or Undo in Jupyter

2018-02-23 Thread Brian Granger
I built something similar to reinteract as well last year. Doing the
simple case isn't very hard - was just deep copying the namespace
before exec'ing each cell and storing those as a python list. As
Robert mentions, doing this type of thing well and efficiently, gets
to be much more difficult.

However, it is important that Jupyter doesn't make any assumptions
about these things or place limitations on the model of the kernel. As
an example here is a python kernel for Jupyter that implements a
dataflow model:

https://github.com/dataflownb/dfkernel



On Fri, Feb 23, 2018 at 12:13 PM, Robert Schroll
 wrote:
> Hi Jayme,
>
> A while back, I was involved in the Reinteract project [1], which had the
> same goal as you with a different mechanism. Reinteract provided a
> notebook-like interface, but it recorded the state in which each expression
> was executed. When you went back to a previous line, it would rewind the
> state and execute in the appropriate historical state.
>
> That was the goal at least. To avoid copying the whole state every step, it
> relied on heuristics at the syntax level to guess whether code would modify
> objects. Reinteract would then only copy things that changed. This worked
> 98% of the time, which was enough for me, but it still produced a few odd
> corner cases where its behavior was incomprehensible to those who didn't
> know its internals.
>
> I'm happy to talk more about Reinteract if you're interested, but I've
> already bored this mailing list once about it.
>
> Robert
>
> [1] http://www.reinteract.org/
>
>
> On Feb 22 2018, at 2:39 am, Jayme Bird  wrote:
>
>
> Dear all,
>
> I would appreciate your feedback with a potential research area,
> specifically within Jupyter - and perhaps more generally in Python.
>
> Interactive data analysis in frameworks like jupyter notebooks has a common
> issue - the modification of potentially large datasets within an interactive
> session. Unintentional modification is frequent, and the common solution is
> to re-run the steps that were required to get from a data file to the point
> in question. This reduces the usability of the analysis tools, makes
> “what-if” exploration difficult, and creates a lot of unnecessary overhead
> for either manually saving state or re-running scripts to recreate it.
>
> I'm investigating a proposed project focused on the use of relational
> Multi-Version Concurrency Control (MVCC) techniques from database systems
> for these interactive workloads. In essence allowing a control z undo
> functionality to return to the previous state after running a particular
> step of an interactive script.
>
> I would appreciate knowing if any development of this has been discussed -
> as well as ideas or useful feedback in general?
>
> Kind regards
> Jayme Bird
>
> --
> 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/1410954636.3371205.1519295968702.JavaMail.zimbra%40cwi.nl.
> 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/local-ac90a11e-2fb9-v1.1.4-22d9f20d%40mando.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgran...@calpoly.edu and elliso...@gmail.com

-- 
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/CAH4pYpSAZnYqNhAzrYzy9z%3DmWrHZH6bVaYx726fSFLMtwo%2BccA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Re: widget updating plot; plot disappears

2018-02-23 Thread Jason Grout
continuous_update is an option for a slider, not for the interactive
command. Try doing:

interact_manual(f, p=(0, 100))

(and I agree that we should refactor these interact and interactive
commands to be more consistent and powerful, and happy to help someone do
it.)

Jason


On Wed, Feb 21, 2018 at 4:49 PM Randy Heiland 
wrote:

> Any idea why the "continuous_update=False" doesn't work (for me)? Does it
> work for others? - rf. attached .ipynb.
>
> thanks, Randy
>
> On Wed, Feb 21, 2018 at 4:22 PM, Jason Grout  wrote:
>
>> You can use the interact_manual function. See
>> http://ipywidgets.readthedocs.io/en/latest/examples/Using%20Interact.html#Disabling-continuous-updates
>>
>> Jason
>>
>>
>> On Mon, Feb 19, 2018, 10:09 Randy Heiland 
>> wrote:
>>
>>> I seem to have fixed my initial problem - rf. attached .ipynb.
>>>
>>> Next question - how do I avoid continuous update when a slider is moved?
>>>
>>> thanks, Randy
>>>
>>>
>>> On Monday, February 19, 2018 at 11:13:02 AM UTC-5, Randy Heiland wrote:

 Hello,

 I was testing the following on https://try.jupyter.org/  and wondering
 why the plot sometimes disappears:

 %matplotlib notebook
 import numpy as np
 import matplotlib.pyplot as plt

 def f(p):
 plt.figure(2)
 nx = 10
 ny = 10
 x = np.linspace(1, nx, nx)
 y = np.linspace(1, ny, ny)
 xv, yv = np.meshgrid(x, y)

 rgb = np.zeros((nx*ny,3))
 rgb[:,0] += 1
 rgb[:][p-1] = [0,1,0]

 area=200
 plt.scatter(xv, yv, marker='s', s=area, c=rgb)

 plt.xticks([])
 plt.yticks([])
 #plt.show()

 from ipywidgets import interact, interactive
 interactive_plot = interactive(f, p=(0, 100))
 interactive_plot

>>> --
>>> 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/886fd352-09b5-4e50-858a-ebf7c8d3f508%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Project Jupyter" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jupyter/732c6aozcIE/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CAPDWZHznV1xxv938KOfGnQ4xftkLMFDcrpMyQvp8Mey0BgVrDw%40mail.gmail.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/CAO_spu4iFzDirh0AgK%3DSWe%2BmXNbZ7O0xO9TijYidqehPxOUnQg%40mail.gmail.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/CAPDWZHwuqr3FFGjQ9%2Bo5spPZqaPsuinAFiu4OJBeiCzpP%2BCrQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Time Travel Analysis or Undo in Jupyter

2018-02-23 Thread Robert Schroll
Hi Jayme,

A while back, I was involved in the Reinteract project [1], which had the same 
goal as you with a different mechanism. Reinteract provided a notebook-like 
interface, but it recorded the state in which each expression was executed. 
When you went back to a previous line, it would rewind the state and execute in 
the appropriate historical state.
That was the goal at least. To avoid copying the whole state every step, it 
relied on heuristics at the syntax level to guess whether code would modify 
objects. Reinteract would then only copy things that changed. This worked 98% 
of the time, which was enough for me, but it still produced a few odd corner 
cases where its behavior was incomprehensible to those who didn't know its 
internals.
I'm happy to talk more about Reinteract if you're interested, but I've already 
bored this mailing list once about it.
Robert
[1] http://www.reinteract.org/

On Feb 22 2018, at 2:39 am, Jayme Bird  wrote:
>
> Dear all,
> I would appreciate your feedback with a potential research area, specifically 
> within Jupyter - and perhaps more generally in Python.
> Interactive data analysis in frameworks like jupyter notebooks has a common 
> issue - the modification of potentially large datasets within an interactive 
> session. Unintentional modification is frequent, and the common solution is 
> to re-run the steps that were required to get from a data file to the point 
> in question. This reduces the usability of the analysis tools, makes 
> “what-if” exploration difficult, and creates a lot of unnecessary overhead 
> for either manually saving state or re-running scripts to recreate it.
> I'm investigating a proposed project focused on the use of relational 
> Multi-Version Concurrency Control (MVCC) techniques from database systems for 
> these interactive workloads. In essence allowing a control z undo 
> functionality to return to the previous state after running a particular step 
> of an interactive script.
> I would appreciate knowing if any development of this has been discussed - as 
> well as ideas or useful feedback in general?
> Kind regards
> Jayme Bird
>
> --
> 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/1410954636.3371205.1519295968702.JavaMail.zimbra%40cwi.nl.
> 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/local-ac90a11e-2fb9-v1.1.4-22d9f20d%40mando.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Help getting started to contribute code to Jupyter/JupyterHub

2018-02-23 Thread David Doherty
Hi. I'm seriously looking at using Jupyter as our production notebook 
environment at a large company I work at. I've managed to get to the point 
where I have custom authenticators and spawners that work within our 
corporate proxy. However, I'd like to get a bit deeper into it so I'm 
looking for help to get me started. I'm thinking a pair programming session 
to help me get off the ground and bounce some questions on the framework. 
I'm willing to pay a nominal amount of money to reimburse people for their 
time... 

Thanks,
Dave

-- 
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/71100a2b-26c4-40f0-8f3b-ad5f1f901321%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Jupter notebook does not display all the folders

2018-02-23 Thread David Doherty
Got any more details? It won't display folders starting with a period for 
example.

Jupyter doesn't really target Windows platform by the way, so you may not 
get full support unless you're willing to contribute code.

Dave

On Thursday, 15 February 2018 20:24:09 UTC-5, N. Srinivasan wrote:
>
> I am using Windows 10 and Latest version of Anaconda.
> The Jupyter notebook does not display all the folders.
>
> Is ther a bug in Jupyter?
>
> However, certain folders are displayed.
>

-- 
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/f0357354-ed75-4caa-9682-6e2201d220f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Allowing client-side nbextension to talk to server-side extension

2018-02-23 Thread 'Ian Stuart' via Project Jupyter
Solved!

The definition of the `put` method handler was indented incorrectly, so not 
seen by the `NbuFileHandler` class

:sigh: - sorry

-- 
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/100a2b0a-f4c6-411f-88a7-633402ae8f87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Allowing client-side nbextension to talk to server-side extension

2018-02-23 Thread 'Ian Stuart' via Project Jupyter
Further:

http://localhost:/nbu/download


-- 
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/abf2d87a-927d-425b-aaa1-9ef2308f58e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Allowing client-side nbextension to talk to server-side extension

2018-02-23 Thread 'Ian Stuart' via Project Jupyter
Let us assume I have successfully installed a client-side extension that 
has the following code-fragment:

var settings = {
   url : '/nbu/upload',
   processData : false,
   type : "PUT",
   dataType: "json",
   data: JSON.stringify(data),
   contentType: 'application/json',
   success: function(data) {
   
   // display feedback to user

var feedback = ' 
\
  \
 '+data.statusText+' \
  \
   ';
   
   // display feedback
   //$('.commit-feedback').remove();
   container.prepend(feedback);
   },
   error: function(data) {
   
   // display feedback to user
   var feedback = ' \
  \

 Warning! Something went wrong. \
 
'+data.statusText+' 
\
   ';
   
   // display feedback
   //$('.commit-feedback').remove();
   container.prepend(feedback);
   }
   }

// commit and push
   utils.ajax(settings);

This extension works fine (notice the use of 'utils.ajax' to call the 
server to include the XSRF tokens)

On the server-side, I have:
from .handlers import setup_handlers

def load_jupyter_server_extension(nbapp):
setup_handlers(nbapp.web_app)

and
def setup_handlers(web_app):
route_pattern = ujoin(web_app.settings['base_url'], '/nbu/upload')
web_app.add_handlers('.*$', [
(route_pattern, NbuFileHandler)
])

Everything installs correctly - however I'm getting a 'PUT 
http://localhost:/nbu/upload 405 (Method Not Allowed)' error when the 
ajax call runs.

Any idea why?

-- 
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/6f9712d3-e791-41ab-976c-325ba164d3b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.