Re: [jupyter] Blocking copy/paste functionality to JupyterHub

2018-02-20 Thread Jeremy Ho
Hi Matthias,

Thank you for your response. For some background context, the notebooks 
will have access to sensitive data sources that we don't want to have 
leaving the notebooks, and we also don't want to have users can inserting 
their own content into the environment.

Blocking copy and paste is one of the main features that we wish to 
achieve. Essentially, we would like to ensure that a JupyterHub notebook 
user is able to use and modify their notebooks at will normally (via 
typing, clicking and normal keystrokes), but disallow them from inserting 
or removing data to and from said notebooks via copy/paste. Additionally, 
we would like to prevent the the mouse right click or equivalent keyboard 
event as well.

In the meantime, I will go ahead and take a look at inserting the 
Javascript example solution you have provided into the Jupyter Notebook 
image and evaluate if it meets our requirements. I will also experiment 
with additional Javascript code in that js file intercepting other events 
(equivalent to right click) in addition to Clipboard event. If you have any 
other ideas or suggestions, please let me know.

Thanks again,
Jeremy

On Tuesday, 20 February 2018 10:17:24 UTC-8, Matthias Bussonnier wrote:
>
> Hello Jeremy, 
>
> Thanks for your question, 
>
> A few Questions: is copy and past the only thing you want to block ? Do 
> you sill want users to be able to modify notebooks by typing ? Is the a 
> specific requirement/certification you need to have ?
>
> A couple of clarification as well: JupyterHub act only as a proxy it is 
> likely note JupyterHub, but Jupyter notebook itself that you will need to 
> patch/configure to do so. It is not baked in but you probably can use 
> extensions mechanism to do that. 
>
> There are ways in Javascript to prevent copy pasting, for example:
>
> document.addEventListener('copy', function(e){
> e.clipboardData.setData('text/plain', 'NO');
> e.preventDefault(); // We want our data, not data from any selection, 
> to be written to the clipboard
> });
>
> Will listen for copy events and replace the Data by "NO", you can also 
> ping a custom URL to log when users are trying to copy.
> Adapt for past events as well.
>
> For the classic notebook you can either build that as an extension, or put 
> it in users's `custom.js` (which I guess you will have control over)
>
> Does that make some sens ?
> -- 
> Matthias
>
>
>
>
> On 19 February 2018 at 12:22, Jujaga  
> wrote:
>
>> 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+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/CAFMFVKuekm25o7gP0g2qTeDrGSeAP-WPVjBp2nsKWB4B3M4USw%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/09c7c325-e45f-4f7a-9d4f-69a4eb5a8ed7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] JupyterLab: Ready for Users

2018-02-20 Thread s...@draves.org
Congrats Jason and everyone! What an incredible accomplishment.

On Feb 20, 2018 8:27 AM, "Jason Grout"  wrote:

> We are proud to announce the beta release series of JupyterLab, the
> next-generation web-based interface for Project Jupyter.
>
> tl;dr: *JupyterLab is ready for daily use (**documentation*
> *,
> **try it with Binder*
> 
> *)*
>
> Read all about it: https://blog.jupyter.org/jupyterlab-is-ready-for-users-
> 5a6f039b8906
>
> Thanks to everyone that made this possible!
>
> Jason
>
> --
> 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/CAPDWZHyp1SuXCQgwbG3Ska%2B%3D%3DHRZZgM%2BPVTJyiVtUhTyQ75j_g%
> 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/CAMaD%2Bf5%2BQehw%2B9hePwBuKnaxdK2BYYKbEcSsD%3DJiUvmOsWMDsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] JupyterLab: Ready for Users

2018-02-20 Thread Fernando Perez
On Tue, Feb 20, 2018 at 6:26 AM, Jason Grout  wrote:

> We are proud to announce the beta release series of JupyterLab, the
> next-generation web-based interface for Project Jupyter.
>
> tl;dr: *JupyterLab is ready for daily use (**documentation*
> *,
> **try it with Binder*
> 
> *)*
>
> Read all about it: https://blog.jupyter.org/jupyterlab-is-ready-for-users-
> 5a6f039b8906
>
> Thanks to everyone that made this possible!
>

+1! It's been a crazy amount of work by a lot of dedicated people, thanks
everyone!

Also: we really want to encourage everyone to test it and give us feedback.
Many of us are already using it as an everyday tool, and we really want it
to be a smooth transition from "Classic" for everyone. While we recognize
the extension ecosystem will take a while to move over, ironing out any
important show-stoppers that users may identify early on will help a lot.
If you find things that absolutely prevent you from using JLab as on an
everyday basis, please let us know as we need to address those issues with
high priority.

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


Re: [jupyter] Blocking copy/paste functionality to JupyterHub

2018-02-20 Thread Matthias Bussonnier
Hello Jeremy,

Thanks for your question,

A few Questions: is copy and past the only thing you want to block ? Do you
sill want users to be able to modify notebooks by typing ? Is the a
specific requirement/certification you need to have ?

A couple of clarification as well: JupyterHub act only as a proxy it is
likely note JupyterHub, but Jupyter notebook itself that you will need to
patch/configure to do so. It is not baked in but you probably can use
extensions mechanism to do that.

There are ways in Javascript to prevent copy pasting, for example:

document.addEventListener('copy', function(e){
e.clipboardData.setData('text/plain', 'NO');
e.preventDefault(); // We want our data, not data from any selection,
to be written to the clipboard
});

Will listen for copy events and replace the Data by "NO", you can also ping
a custom URL to log when users are trying to copy.
Adapt for past events as well.

For the classic notebook you can either build that as an extension, or put
it in users's `custom.js` (which I guess you will have control over)

Does that make some sens ?
-- 
Matthias




On 19 February 2018 at 12:22, Jujaga  wrote:

> 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.
>

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


[jupyter] JupyterLab: Ready for Users

2018-02-20 Thread Jason Grout
We are proud to announce the beta release series of JupyterLab, the
next-generation web-based interface for Project Jupyter.

tl;dr: *JupyterLab is ready for daily use (**documentation*
*,
**try it with Binder*

*)*

Read all about it:
https://blog.jupyter.org/jupyterlab-is-ready-for-users-5a6f039b8906

Thanks to everyone that made this possible!

Jason

-- 
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/CAPDWZHyp1SuXCQgwbG3Ska%2B%3D%3DHRZZgM%2BPVTJyiVtUhTyQ75j_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.