[jupyter] Blocking copy/paste functionality to JupyterHub

2018-02-19 Thread Jujaga
Hi all,

Our group is currently leveraging zero-to-jupyterhub-k8s in order to
provide Notebooks to a multi-user environment via Kubernetes. However, we
also have a business requirement where we must prevent users from copying
information out of the Notebooks, as well as preventing the insertion of
code and other information into the Notebooks. We want to effectively block
any textual information to and from the client's browser while still
maintaining their ability to use the Notebooks.

We were wondering if there exists a method of achieving this? We are more
than happy to provide more information and context as needed.

Thanks in advance,
Jeremy

--
Jeremy Ho
Software Engineer

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


Re: [jupyter] Is there a way to connect to Google Colab's Jupyter Notebook via SSH?

2018-02-19 Thread rraallvv
Thanks so much for the info! I'm going to take a look at it.

On Monday, February 19, 2018 at 10:58:12 AM UTC-4, Carol Willing wrote:
>
> Hello! 
>
> As Google Colaboratory is a service that uses Jupyter Notebook, I 
> recommend checking out the Colab FAQ:  
> https://research.google.com/colaboratory/faq.html and docs for a specific 
> answer. They also have a channel on Stack Overflow to ask questions: 
> https://stackoverflow.com/questions/ask/advice?tags=google-colaboratory
>
>
> On Mon, Feb 19, 2018 at 9:56 AM, rraallvv  > wrote:
>
>> I'd like to connect to Google Colab's Jupyter Notebook from a terminal 
>> window running locally on my computer. Is there a way to do that?
>>
>> -- 
>> 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/32421ff4-f88d-459d-acf0-2337099b4e31%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> *Carol Willing*
>
> Research Software Engineer
> Project Jupyter at Cal Poly SLO
>
> cawi...@calpoly.edu 
>
> *Signature strengths*
> *Empathy - Relator - Ideation - Strategic - Learner*
>

-- 
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/01f3402c-9812-4d65-badb-1c372966f21f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Is it possible to add kernels to Google Colab's Jupyter Notebook?

2018-02-19 Thread rraallvv
Thanks for the info, it's very much appreciated.

On Monday, February 19, 2018 at 11:10:27 AM UTC-4, Carol Willing wrote:
>
> Hello!
>
> I don't believe that you can add additional kernels to Google's Colab 
> currently. Though things evolve rapidly, so it would be best to contact 
> Google's Colab team and consult their FAQ and Stack Overflow channel.
>
> > As Google Colaboratory is a service that uses Jupyter Notebook, I 
> recommend checking out the Colab FAQ:  
> https://research.google.com/colaboratory/faq.html and docs for a specific 
> answer. They also have a channel on Stack Overflow to ask questions: 
> https://stackoverflow.com/questions/ask/advice?tags=google-colaboratory
>
> On Monday, February 19, 2018 at 9:57:13 AM UTC-4, rraallvv wrote:
>>
>> I'd like to run other kernels beside the one for Python on Google Colab's 
>> Jupyter Notebook (formally colaboratory.jupyter.org). Is there a way to 
>> do that?
>>
>

-- 
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/4c7d2e78-e68e-4854-9a42-3b962e1c6bbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: widget updating plot; plot disappears

2018-02-19 Thread Randy Heiland
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.


mockup3.ipynb
Description: Binary data


[jupyter] widget updating plot; plot disappears

2018-02-19 Thread Randy Heiland
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/645de1a1-d821-4cf0-bc9b-4dc5a0111e6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Get Notebook Metadata using Python

2018-02-19 Thread Jason Grout
In general, the python (kernel) does not know if it is running code from a
notebook, console, or some other service. The architecture is specifically
designed to be agnostic that way to give you great power and flexibility in
how to run code. For example, it's easy to run one cell from a notebook,
open up a console to the same kernel, and run the next few bits of code
from the console as you investigate the environment interactively outside
of the notebook. As such, I don't know of any way to tell from a given
piece of code being run that it is (a) sent from a notebook, and (b) get
the metadata from the notebook.

Of course, if you are just talking about using the python kernel to open up
a notebook file itself, you can retrieve the metadata by just reading in
the notebook JSON.

Thanks,

Jason


On Mon, Feb 19, 2018 at 7:09 AM Stefano Antonel 
wrote:

> Hi I need to access the Notebook metadata using python.
> I'm able to get it using javascript like IPython.notebook.metadata but I
> don't like it at all.
> There is any option with python?
>
> Stefano
>
> --
> 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/52cb2e92-c5ea-46fd-a402-e19279dc3cb4%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/CAPDWZHwQfBR_6WZzfFqFSv5fsqjdQ_iYGRpZLHbb9tzMS%2BioLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Is it possible to add kernels to Google Colab's Jupyter Notebook?

2018-02-19 Thread Carol Willing
Hello!

I don't believe that you can add additional kernels to Google's Colab 
currently. Though things evolve rapidly, so it would be best to contact 
Google's Colab team and consult their FAQ and Stack Overflow channel.

> As Google Colaboratory is a service that uses Jupyter Notebook, I 
recommend checking out the Colab FAQ:  
https://research.google.com/colaboratory/faq.html and docs for a specific 
answer. They also have a channel on Stack Overflow to ask questions: 
https://stackoverflow.com/questions/ask/advice?tags=google-colaboratory

On Monday, February 19, 2018 at 9:57:13 AM UTC-4, rraallvv wrote:
>
> I'd like to run other kernels beside the one for Python on Google Colab's 
> Jupyter Notebook (formally colaboratory.jupyter.org). Is there a way to 
> do that?
>

-- 
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/709a5d17-86a3-4b0d-9e1c-41b71f7dfccb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Get Notebook Metadata using Python

2018-02-19 Thread Stefano Antonel
Hi I need to access the Notebook metadata using python.
I'm able to get it using javascript like IPython.notebook.metadata but I 
don't like it at all.
There is any option with python?

Stefano

-- 
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/52cb2e92-c5ea-46fd-a402-e19279dc3cb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Is there a way to connect to Google Colab's Jupyter Notebook via SSH?

2018-02-19 Thread Carol Willing
Hello!

As Google Colaboratory is a service that uses Jupyter Notebook, I recommend
checking out the Colab FAQ:
https://research.google.com/colaboratory/faq.html and docs for a specific
answer. They also have a channel on Stack Overflow to ask questions:
https://stackoverflow.com/questions/ask/advice?tags=google-colaboratory


On Mon, Feb 19, 2018 at 9:56 AM, rraallvv  wrote:

> I'd like to connect to Google Colab's Jupyter Notebook from a terminal
> window running locally on my computer. Is there a way to do that?
>
> --
> 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/32421ff4-f88d-459d-acf0-2337099b4e31%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Carol Willing*

Research Software Engineer
Project Jupyter at Cal Poly SLO

cawil...@calpoly.edu

*Signature strengths*
*Empathy - Relator - Ideation - Strategic - Learner*

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


[jupyter] Is it possible to add kernels to Google Colab's Jupyter Notebook?

2018-02-19 Thread rraallvv
I'd like to run other kernels beside the one for Python on Google Colab's 
Jupyter Notebook (formally colaboratory.jupyter.org). Is there a way to do 
that?

-- 
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/c73b7434-7748-49c9-bfc3-77b0e4be56ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Is there a way to connect to Google Colab's Jupyter Notebook via SSH?

2018-02-19 Thread rraallvv
I'd like to connect to Google Colab's Jupyter Notebook from a terminal 
window running locally on my computer. Is there a way to do that?

-- 
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/32421ff4-f88d-459d-acf0-2337099b4e31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Is it possible to add kernels to Google Colab's Jupyter Notebook?

2018-02-19 Thread rraallvv
I'd like to connect to Google Colab's Jupyter Notebook from a terminal 
window running locally on my computer. Is there a way to do that?

-- 
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/b87dc4ea-9252-4c8e-9bd5-632fa790d97f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.