I am using Amazon EC2 AMI deep learning.
how can I revoke permission of uploading a file in jupyter notebook? Is there any way I can deny user from uploading any new files from their local machine?
This is an open issue on the jupyter github:
https://github.com/jupyter/jupyter/issues/293
A way to disable downloading is described here:
https://ujjwalbhardwaj.me/post/disable-download-button-on-the-sagemaker-jupyter-notebook
I haven't tested it myself, but I can image that overriding the files_handler_class with None in the latter example could also prevent uploads.
c.ContentsManager.files_handler_class = None
About three years after Logiza DevOps' answer: this is still an open issue on GitHub, albeit a different one (#7451). The discussion revolves around making uploads extension-based so that they can be disabled. The problem is that it is not sufficient to "make the Upload button disappear" because it is also possible to upload a file by simply dragging and dropping it over the notebook's File manager. In short, this is complicated :-(
What's more: even if you could block file uploads, the user can still edit notebooks and other files through the Web GUI, so it's possible for instance to start some long-running CPU-intensive calculations on your notebook server. I think you have no other choice but to trust your notebook users...
Slightly off-topic: as regards disabling downloads, there is now a Jupyter extension-based solution:
jupyter labextension disable #jupyterlab/docmanager-extension:download
jupyter labextension disable #jupyterlab/filebrowser-extension:download
pip3 uninstall -y nbconvert
The nbconvert removal is necessary to prevent notebook conversion to PDF for instance.
Related
I'm pretty new at this so thanks for the patience. I was trying to import some libraries like matplotlib into a Jupiter Notebook file and I would get an error claiming that "there is not module named matplotlib". After having a difficult time installing it through the terminal (every time I used 'pip install matplotlib' the command would terminate due to some error), I tried opening the notebook file through the Anaconda navigator (opening the anaconda navigator, clicking on the Jupyter Notebook, which is slower and less convenient). However, importing actually worked with this method. It was the exact same file. The only variation was the way I opened Jupyter Notebook.
My question is why does this happen? What is going on that I don't know? It seems like an important piece of information to understanding how file systems work but I can't figure it out. Also, how can I fix this?
I recently upgraded to MacOS Catalina to take advantage of various new features/improvements. Soon after installation, I noticed that a question grey mark appeared over the Anaconda icon in my applications. Additionally, my Anaconda files have seemingly been migrated to the "Relocated Items" folder now on my desktop.
I am not sure exactly how to deal with this. I have tried clicking the Anaconda icon with the question mark to launch it, but this fails. I have also attempted locating my Jupyter notebooks in the relocated items file but have not been able to do so successfully.
My question is what do I need to do to fix this problem to restore normal functionality back? Do I need to reinstall Anaconda? Will this new installation have my old Jupyter notebooks?
From a little reading online I have found that Apple says that no files should be deleted; therefore, in theory, there should be no loss of data from the upgrade. I am just not sure how I can restore access to these Jupyter notebooks.
Not sure if anyone else has experienced a similar problem. Any help or general guidance would be greatly appreciated.
Thanks.
Answer: As I just found out, Anaconda rolled out a new update to address this issue. I went to their website here and just downloaded a fresh installation of the latest version of Anaconda. This worked great and completely fixed the issue. I can now access all of my pervious Jupyter notebooks.
I want to access my ubuntu terminal using my browser i found a npm package web-terminal but it is kind off not complete. I have seen jupyter notebook do it. so is there a solution for it or a way to get that terminal thingy out of jupyter notebook.
Example: Just like when u access your google cloud server via your browser with some sort of shell.
Note: I didn't get anything to start with just the npm web-terminal so i won't be able to show much effort from my side.
Thank you in advance. :D
So i finally found the answer i was looking for.
There is one such tool called xterm.js and very well applied example of xterm is in jupyter notebook named termiado.
Novice here
So yesterday I downloaded Anaconda, and from there I clicked on launch Jupyter. That opened the web browser where I could see all the files in my computer. That is a concern for me as I figure that other people can also access that.
I managed to shut down the server via the terminal by using a command control-x or something along those lines. My questions are:
Does Jupyter somehow save that data somewhere?
Is that data still accessible to somebody else even though I shut down the server?
Thank you
Per default a Jupyter Notebook server runs on localhost, which is only reachable from the local machine. In addition, it generates a unique token that you need to connect. So nobody else from a different machine can see your data.
I know how does Cask works and all the benefits I can get when using it in a brand new system, but what I want to know and I don't seem to find and answer anywhere is... would it be a good idea if I delete my previous installed software and replace them with cask versions? would I see some kind of improvement, or would it be a waste of time?
There's no real advantage to reinstalling existing binaries using homebrew-cask. It's strictly a workflow improvement for when you need to install various softwares. For instance, if you wanted to have a script to install all your regularly used binaries on a new computer, that would be more efficient than manually visiting several sites and downloading, installing, etc.
Traditional software installation on some apps have automatic updates and some require the user to visit the apps website to do an update. Once the update is downloaded the user is required to click next, next, agree etc whilst it is satisfactory to do this for a few apps it can be time consuming.
One of the advantages of HBC is that it does an install without user interaction or sometimes a prompt for admin password. So if you do a reinstall of the OS you can use HBC to reinstall the additional apps.
At present there is no provision for updates using HBC so i have written scripts that take of some issues.
The scripts will create a file that lists the files to be updated including apps that are defined as latest. You can then modify the file to suit your requirements and install updates using my olinst script.
For more information visit my github.
https://github.com/pacav69/homebrew-homebrew-caskroom-offline-installer