[jupyter] Re: Jupyter notebook

2017-11-27 Thread Roland Weber
Hello twanmal,

could you please explain the problem you encountered?

If the Anaconda environment is correctly initialized, the notebook server 
in that environment should have no problem to start with a localhost setup. 
With correctly initialized, I mean that you executed "source activate 
" (or the Windows equivalent) in the command line before 
trying "jupyter notebook".

cheers,
  Roland

-- 
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/e79e7767-536b-4721-af13-55a7bfb8083a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Is it possible to run multiple Jupyter versions on a hub?

2017-11-27 Thread Roland Weber
Kenneth, your notebook app in the alternate environment might be looking 
for its configuration in a different location. Make sure that it finds 
something valid :-)

-- 
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/e2f54d85-911b-48f4-a795-d76af443b2d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Is it possible to run multiple Jupyter versions on a hub?

2017-11-27 Thread Kenneth Lyons
Is it feasible to launch a single user server using a conda environment's 
notebook version with something like LocalProcessSpawner? The API doc for 
LocalProcessSpawner's cmd option says:

This is usually set if you want to start the single-user server in a 
> different python environment (with virtualenv/conda) than JupyterHub itself.
>

Does anyone know of an example of doing this? I tried activating the conda 
environment and then running jupyterhub-singleuser, e.g.:

from jupyterhub.spawner import LocalProcessSpawner
c.LocalProcessSpawner.options_form = \
"""
Choose an environment:

  Default
  Alternate

"""

def activate_env(spawner):
env = spawner.user_options.get('env')[0]
if env == 'alternate':
spawner.cmd = [
'bash', '-c',
'source activate alternate && jupyterhub-singleuser'
]

c.LocalProcessSpawner.pre_spawn_hook = activate_env
import subprocess
c.LocalProcessSpawner.popen_kwargs = dict(stdout=subprocess.PIPE)
c.JupyterHub.spawner_class = LocalProcessSpawner


but the single-user server fails and I see this:

[C 2017-11-27 13:39:01.834 SingleUserNotebookApp application:90] Bad config 
encountered during initialization:
[C 2017-11-27 13:39:01.834 SingleUserNotebookApp application:91] The 'ip' 
trait of a SingleUserNotebookApp instance must be a unicode string, but a 
value of None  was specified.

Choosing the "Default" option in the form works. This makes me think 
possibly JupyterHub's SingleUserNotebookApp isn't fully compatible with 
notebook 4.* or something. I could also easily be doing something wrong.

On Tuesday, November 21, 2017 at 5:51:45 PM UTC-8, Ryan Lovett wrote:
>
> One possible solution would be to containerize your 2014 and post-2014 
> environments, and configure your JupyterHub to use a container-based 
> spawner.
>

-- 
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/dba77005-35b9-44e8-825f-586a45d1f454%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] nbdime does not exit with Ctrl-C on Windows

2017-11-27 Thread Denis Akhiyarov
Any reason why nbdime cannot exit with Ctrl-C if launched in interactive 
web mode? I have to kill the nbdime server from another command-line 
session:

C:\Windows\system32>taskkill /f /im nbdime*
SUCCESS: The process "nbdime.exe" with PID 5844 has been terminated.

-- 
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/af6db17b-7fac-4deb-af21-24cfc190dbc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Rich representation of exceptions/tracebacks

2017-11-27 Thread Brian Granger
One further question - do you think there is anything we can do in the
meantime in upstream libraries such as Altair so support rich reprs of
errors? Sure we could just publish a mimebundle, but then then we
can't raise, right?

On Mon, Nov 27, 2017 at 11:38 AM, Brian Granger  wrote:
>> I poked at it some time ago (sorry no branches), and plan to do refactoring
>> of IPython's error machinery to improve that. One issue is that the
>> Traceback fromatter does tokenizing and coloring at the same time (with raw
>> escape sequences) instead of yielding data structures that can be formatted
>> later. This was one of my reason to push Python 3 : to use generators, yield
>> and yield-from in this part of the codebase.
>> It is still _way_ too messy now, but better than it was a year ago.
>
> OK, that is helpful!
>
>> That's technically, for the overview, I also discussed a bit with Kyle at
>> spring dev meeting (and looked at tonic dev). I think that having some "get
>> together" with kernels author from multiple languages would be useful. In
>> particular I'd like to integrate the discussion about a debugger protocol
>> into this as well and/or link from error messages to code cells, which need
>> a bit more coordination than "just" mimebundles.
>
> Yeah I could imagine something more structured that mimebundles might
> be helpful in this context.
>
>>
>> I also tweeted
>> [that](https://twitter.com/Mbussonn/status/933418933994098688) in response
>> to same blog post, so you are 4 days late :-)
>
> :-) Thanks for the update, glad I wasn't alone in thinking about these things.
>
> Cheers, Brian
>
>> --
>> Matthias
>>
>>
>> On Sun, Nov 26, 2017 at 7:04 PM, Brian Granger  wrote:
>>>
>>> Hi all,
>>>
>>> Has anyone done work on using rich MIME based representations of
>>> exceptions and tracebacks in IPython+Jupyter?
>>>
>>> This nice blog post got me thinking about providing more helpful
>>> representations of errors to users:
>>>
>>> https://blog.keras.io/user-experience-design-for-apis.html
>>>
>>> Cheers,
>>>
>>> Brian
>>>
>>> --
>>> 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/CAH4pYpSCR6o-JFk--t0Sn3SjY%2B%2BZ_%2BFC0WAXSRCqt_Qy%3DEddyg%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/CANJQusUvjhb%3DZ1HP93cssJ%3Dzk19%2BK0fqO%3DZnm8P4hVAjchrt6A%40mail.gmail.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



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


Re: [jupyter] Rich representation of exceptions/tracebacks

2017-11-27 Thread Brian Granger
> I poked at it some time ago (sorry no branches), and plan to do refactoring
> of IPython's error machinery to improve that. One issue is that the
> Traceback fromatter does tokenizing and coloring at the same time (with raw
> escape sequences) instead of yielding data structures that can be formatted
> later. This was one of my reason to push Python 3 : to use generators, yield
> and yield-from in this part of the codebase.
> It is still _way_ too messy now, but better than it was a year ago.

OK, that is helpful!

> That's technically, for the overview, I also discussed a bit with Kyle at
> spring dev meeting (and looked at tonic dev). I think that having some "get
> together" with kernels author from multiple languages would be useful. In
> particular I'd like to integrate the discussion about a debugger protocol
> into this as well and/or link from error messages to code cells, which need
> a bit more coordination than "just" mimebundles.

Yeah I could imagine something more structured that mimebundles might
be helpful in this context.

>
> I also tweeted
> [that](https://twitter.com/Mbussonn/status/933418933994098688) in response
> to same blog post, so you are 4 days late :-)

:-) Thanks for the update, glad I wasn't alone in thinking about these things.

Cheers, Brian

> --
> Matthias
>
>
> On Sun, Nov 26, 2017 at 7:04 PM, Brian Granger  wrote:
>>
>> Hi all,
>>
>> Has anyone done work on using rich MIME based representations of
>> exceptions and tracebacks in IPython+Jupyter?
>>
>> This nice blog post got me thinking about providing more helpful
>> representations of errors to users:
>>
>> https://blog.keras.io/user-experience-design-for-apis.html
>>
>> Cheers,
>>
>> Brian
>>
>> --
>> 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/CAH4pYpSCR6o-JFk--t0Sn3SjY%2B%2BZ_%2BFC0WAXSRCqt_Qy%3DEddyg%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/CANJQusUvjhb%3DZ1HP93cssJ%3Dzk19%2BK0fqO%3DZnm8P4hVAjchrt6A%40mail.gmail.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/CAH4pYpS5HCsy%3DTk1mNFKLZSnVWuo1omHNatDGx601xU7mKc8pA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Jupyter notebook

2017-11-27 Thread twanmal
Hello,
I wonder why Jupyter recommend the anaconda installation and does not ask 
to install python variables because if you follow the anconda installation, 
it recommends to not update the environment variables. Then there is surely 
a problem while trying "jupyter notebook" in the command line...

-- 
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/d06c50c6-b319-450f-b0ba-c68faaacfabd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Re: Checkpoint curiosity

2017-11-27 Thread Matthias Bussonnier
> Can you really rollback things effectively?  Or can they serve as a
functional traceback of how someone works if they only save manual selected
states?

By default the Filesystem checkpointing only saves one version; we had
quite a bit of complain of people wanted to open a notebook, try things and
quit without modifications, with AutoSave this resulted in a lot of "lost
work" hence the current  auto-saved enabled plus 1 checkoint in a hidden
folder. Though as Roland pointed out you can ad plugins that extend the
Checkpointing to multiple versions.

Cheers,
-- 
M

On Mon, Nov 27, 2017 at 7:38 AM, Roland Weber  wrote:

> Hello David,
>
> on Data Science Experience, we call them "versions". When somebody shares
> a link to or schedules execution of a notebook, it's the last
> version/checkpoint that will be rendered or executed by default. Users can
> continue to edit and save their notebooks, that doesn't change what's
> shared or executed. Once they have completed the next round of work, they
> save a new version/checkpoint.
>
> cheers,
>   Roland
>
> https://datascience.ibm.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/250bf79d-87e8-4824-835b-d4b2343637bf%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/CANJQusVn5PnANdB-x2b-LD%3Ds0mWXkTAvJEzZ2TuZPjVFpQ7dSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.