Остановить или удалить Jupyter Server
Вы можете остановить Jupyter Server , чтобы временно освободить ресурсы, или удалить его.
Остановка Jupyter Server
- Функция доступна только при использовании образов версии выше 0.0.80. См. Список образов, доступных для Jupyter Server .
- Jupyter Server со Spark остановить нельзя.
Чтобы остановить сервер:
- Перейдите в Environments → Jupyter Servers ..
- В строке с названием нужного сервера нажмите .
Когда Jupyter Server останавливается, завершаются все пользовательские процессы в окружении и высвобождаются ресурсы.
При возобновлении запустится идентичный Jupyter Server с тем же образом, набором библиотек и на тех же ресурсах.
Удаление Jupyter Server
После удаления сервера все данные пользователя останутся на NFS и будут видны из любого Jupyter Server в соответствующем регионе. Настройки удаленного сервера сохранятся в /home/jovyan/.local .
Для безвозвратного удаления Jupyter Server:
- Перейдите в Environments → Jupyter Servers ..
- Выберите сервер, который необходимо удалить, отметив его чекбоксом.
- Нажмите рядом со строкой поиска.
- В появившемся диалоговом окне подтвердите действие нажатием на Подтвердить .
Удаление пакетов в Jupyter Notebook

Для написания и тестирования скрипта на Python 3 я использую Jupyter Notebook. Хочу удалить ранее установленный модуль с помощью команды pip uninstall «название модуля». Но он не удаляется, хотя прошло времени порядка часа. Перезагрузка не помогла. Для сравнения пробовал удалить 2 разных модуля — результат одинаков.
Отслеживать
48.7k 17 17 золотых знаков 56 56 серебряных знаков 100 100 бронзовых знаков
Uninstall jupyter with pip
I have the jupyter executable here: /usr/local/bin/jupyter I know historically I’ve been using Python 2 from the Ubuntu distribution (no Anaconda) so I think that jupyter came from a system pip2 install, but I can not find a way to prove this, is there any? Assuming the previous scenario, I’ve done both this: sudo /usr/local/bin/pip2 uninstall jupyter and this sudo /usr/local/bin/pip2 uninstall notebook (even if in /usr/local/bin , I still need sudo cause it seems all the files in there belong to root , for some reason), but I keep seeing that executable in here: /usr/local/bin/jupyter Also: I know that jupyter is the affected one because now the command: jupyter notebook gives this output Error executing Jupyter command ‘notebook’: [Errno 2] No such file or directory . How do I uninstall it? Why pip2 is not removing that executable file? Edit: I currently see this on my filesystem:
ls -lah /usr/local/bin | grep jupyter -rwxr-xr-x 1 root root 222 May 6 2017 jupyter -rwxr-xr-x 1 root root 221 May 6 2017 jupyter-console -rwxr-xr-x 1 root root 264 May 6 2017 jupyter-kernelspec -rwxr-xr-x 1 root root 222 May 6 2017 jupyter-migrate -rwxr-xr-x 1 root root 224 May 6 2017 jupyter-nbconvert -rwxr-xr-x 1 root root 224 May 6 2017 jupyter-qtconsole -rwxr-xr-x 1 root root 243 May 6 2017 jupyter-run -rwxr-xr-x 1 root root 227 May 6 2017 jupyter-troubleshoot -rwxr-xr-x 1 root root 255 May 6 2017 jupyter-trust
When unistalling jupyter I’ve seen this:
sudo pip2 uninstall jupyter [sudo] password for : The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Uninstalling jupyter-1.0.0: /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/DESCRIPTION.rst /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/INSTALLER /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/METADATA /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/RECORD /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/WHEEL /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/metadata.json /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/pbr.json /usr/local/lib/python2.7/dist-packages/jupyter-1.0.0.dist-info/top_level.txt /usr/local/lib/python2.7/dist-packages/jupyter.py /usr/local/lib/python2.7/dist-packages/jupyter.pyc Proceed (y/n)? y Successfully uninstalled jupyter-1.0.0 The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
When unistalling notebook I’ve seen this:
sudo pip2 uninstall notebook The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Uninstalling notebook-5.0.0: /usr/local/bin/jupyter-bundlerextension /usr/local/bin/jupyter-nbextension /usr/local/bin/jupyter-notebook /usr/local/bin/jupyter-serverextension /usr/local/lib/python2.7/dist-packages/notebook-5.0.0.dist-info/DESCRIPTION.rst [. ] /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/__init__.pyc /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/test_tree_handler.py /usr/local/lib/python2.7/dist-packages/notebook/tree/tests/test_tree_handler.pyc /usr/local/lib/python2.7/dist-packages/notebook/utils.py /usr/local/lib/python2.7/dist-packages/notebook/utils.pyc /usr/local/lib/python2.7/dist-packages/notebook/view/__init__.py /usr/local/lib/python2.7/dist-packages/notebook/view/__init__.pyc /usr/local/lib/python2.7/dist-packages/notebook/view/handlers.py /usr/local/lib/python2.7/dist-packages/notebook/view/handlers.pyc Proceed (y/n)? y Successfully uninstalled notebook-5.0.0 The directory '/home//.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
How to uninstall Jupyter Notebook

Alternatively, you can use the conda command if you have Anaconda or Miniconda installed on your system. In this case, you can use the following steps:
- Open a terminal or command prompt.
- Type conda list to see a list of installed packages.
- Locate the entry for Jupyter Notebook, and then type conda remove jupyter to uninstall it.
Suppose you have any trouble uninstalling Jupyter Notebook. In that case, you can try using the —yes or -y flag to force the uninstallation, or you can consult the documentation for the pip or conda command for more options.
#What is Jupyter Notebook
Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It is commonly used for data cleaning and transformation, numerical simulation, statistical modelling, data visualization, machine learning, and much more.
Jupyter Notebook is based on the IPython kernel, which allows you to execute Python code in a Jupyter Notebook. However, Jupyter Notebook also supports other languages, such as R, Julia, and Scala so you can use it with many different programming languages.
Jupyter Notebook is a useful tool for data scientists, data analysts, and anyone who works with data in any capacity. It allows you to combine code, text, and visualizations in a single document, which makes it a great platform for explaining and presenting data-driven ideas.
#What is Anaconda
Anaconda is a free and open-source distribution of the Python and R programming languages for scientific computing that aims to simplify package management and deployment. Package versions are managed by the package management system conda .
Anaconda is widely used in the data science and machine learning community and is included in many data science packages and collections. It comes with many pre-installed packages and environments, making it easy to start with data science and machine learning tasks.
Anaconda also includes the conda command-line tool, which allows you to easily install, update, and manage your packages and environments. This makes it a powerful platform for working with data and allows you to reproduce your work on other systems easily.
In summary, Anaconda is a popular and user-friendly distribution of Python and R programming languages, making it easy to start with data science and machine learning.
#What is Miniconda
Miniconda is a free and open-source minimal distribution of the Anaconda Python and R programming language distribution. It contains only a minimal set of packages and Conda, their package, dependency and environment management system.
Miniconda is useful if you want to have a small and self-contained installation that can be easily transferred to other systems and servers. It allows you to create and manage multiple independent environments with their own packages and dependencies. This can be useful if you need to work with different versions of packages or if you want to avoid conflicting dependencies between your projects.
Miniconda can be installed on Windows, macOS, and Linux systems. It is a smaller alternative to the full Anaconda distribution and is typically used by advanced users who want more control over their Python and R environments.
Follow the next guide if you also want to uninstall Anaconda.
Related articles
- Where Python is used. Types of Python applications (Updated)
- What to do if pyenv global is not working — 2023 solution
- Google Colab vs Jupyter Notebook: Which is Better?
- How to Open Jupyter Notebook in Chrome