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 <[email protected]> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/CAFMFVKuekm25o7gP0g2qTeDrGSeAP-WPVjBp2nsKWB4B3M4USw%40mail.
> gmail.com
> <https://groups.google.com/d/msgid/jupyter/CAFMFVKuekm25o7gP0g2qTeDrGSeAP-WPVjBp2nsKWB4B3M4USw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To post to this group, send email to [email protected].
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.