<jupyter_start><jupyter_text>Table of Contents 1&nbsp;&nbsp;Demonstration of running a Jupyter notebook with sudo rights1.1&nbsp;&nbsp;Without sudo rights1.2&nbsp;&nbsp;With sudo rights1.3&nbsp;&nbsp;Conclusion  Demonstration of running a Jupyter notebook with sudo rights  Without sudo rightsThe next cells were first ran when Jupyter was not running with sudo rights.<jupyter_code>!apt update
!sudo apt update<jupyter_output>[sudo] Mot de passe de lilian :<jupyter_text>As we see here, using `sudo ...` asks for a password, but it doesn't work from Jupyter.  With sudo rightsThe next cells were then ran when Jupyter was running with sudo rights.<jupyter_code>!apt update<jupyter_output>Réception de:1 http://archive.canonical.com/ubuntu bionic InRelease [10,2 kB]  m
Réception de:2 http://ppa.launchpad.net/audio-recorder/ppa/ubuntu bionic InRelease [15,9 kB]
Réception de:3 http://archive.canonical.com/ubuntu bionic/partner Sources [1 904 B]3mm[33m
Réception de:4 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [2 300 B]
Réception de:5 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [2 304 B]
Réception de:6 http://archive.canonical.com/ubuntu bionic/partner Translation-en [1 272 B]
Réception de:7 http://ppa.launchpad.net/costales/anoise/ubuntu bionic InRelease [15,4 kB]
0% [Connexion à fr.archive.ubuntu.com] [Attente des fichiers d'en-tête] [7 In[0mm[33m^C
{'fraction_non_alphanumeric': 0.10241820768136557, 'fraction_numerical': 0.03698435277382646, 'mean_word_length': 5.7, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '528903', 'license': 'MIT', 'n_tokens_mistral': 559, 'n_tokens_neox': 476, 'n_words': 147, 'path': 'Demonstration_of_running_a_Jupyter_notebook_with_sudo_rights.ipynb', 'repo_name': 'doc22940/notebooks-2', 'size': '1406'}