Installing a pip package from within a Jupyter Notebook not working

In IPython (jupyter) 7.3 and later, there is a magic %pip and %conda command that will install into the current kernel (rather than into the instance of Python that launched the notebook). %pip install geocoder In earlier versions, you need to use sys to fix the problem like in the answer by FlyingZebra1 import sys … Read more

Is there a way to use pipenv with Jupyter notebook?

Just tried the following with success. In your project folder: pipenv install ipykernel pipenv shell This will bring up a terminal in your virtualenv like this: (my-virtualenv-name) bash-4.4$ In that shell do: python -m ipykernel install –user –name=my-virtualenv-name Launch jupyter notebook: jupyter notebook In your notebook, Kernel -> Change Kernel. Your kernel should now be … Read more

How to disable password request for a Jupyter notebook session?

The following is very unsafe, but you can remove the password completely with: jupyter notebook –ip=’*’ –NotebookApp.token=” –NotebookApp.password=” Without –NotebookApp.password=”, when connecting from a remote computer to a local Jupyter launched simply with: jupyter notebook –ip=’*’ it still asks for a password for security reasons, since users with access can run arbitrary Python code on … Read more

How to uninstall jupyter

If you don’t want to use pip-autoremove (since it removes dependencies shared among other packages) and pip3 uninstall jupyter just removed some packages, then do the following: Copy-Paste: sudo may be needed as per your need. python3 -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments notebook qtconsole nbconvert nbformat jupyterlab-widgets nbclient Note: The above … Read more

How to use Jupyter notebooks in a conda environment?

Disclaimer: ATM tested only in Ubuntu and Windows (see comments to this answer). Jupyter runs the user’s code in a separate process called kernel. The kernel can be a different Python installation (in a different conda environment or virtualenv or Python 2 instead of Python 3) or even an interpreter for a different language (e.g. … Read more

List running Jupyter notebooks and tokens

UPDATE You can now just run jupyter notebook list in the terminal to get the running jupyter sessions with tokens. Take care that you are within the right environment (conda, virtualenv etc.) otherwise the sessions will list without the associated tokens. Eg: The above reference screenshot is from the conda environment. Old answer: Run ipython … Read more

Tables in Markdown (in Jupyter)

The first row of the table defines the headers, then the next row defines the alignment of each column. You duplicated the alignment at the top of the table and where it’s actually supposed to go. The right Markdown should simply be what you have in your syntax, but remove the first row: | Stretch/Untouched … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)