jupyter_client icon indicating copy to clipboard operation
jupyter_client copied to clipboard

jupyter kernelspec remove -y broken

Open lramey opened this issue 6 years ago • 1 comments

-y is ignored no matter where I put it in the command string. -f works.

At least, on my win10 machine. conda list shows:

jupyter 1.0.0 pypi_0 pypi jupyter-client 5.2.4 pypi_0 pypi jupyter-console 6.0.0 pypi_0 pypi jupyter-core 4.4.0 pypi_0 pypi

ipykernel 5.1.1 pypi_0 pypi ipython 7.5.0 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipywidgets 7.4.2 pypi_0 pypi

lramey avatar Oct 01 '19 15:10 lramey

The -y option is inherited from the JupyterApp superclass, so its probably easy to miss implementing it. I think if you change this line to the following,

    if not self.force and not self.answer_yes:

it should get honored.

kevin-bates avatar Oct 01 '19 16:10 kevin-bates