jupyter / jupyter/notebook

Bash autocompletion error

Open
#4,585 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Start a new terminal emulator running bash with autocompletion enabled. Type `jupyter note`, you will get:

```
Error executing Jupyter command 'baseopts': [Errno 2] No such file or directory
```

The problem is here:

```
if [ -z "$__jupyter_complete_baseopts" ]; then
_jupyter_get_flags baseopts
__jupyter_complete_baseopts="${opts}"
fi
local baseopts="$__jupyter_complete_baseopts"
```

since `baseopts` is not a subcommand at all! As a workaround one can initialize `__jupyter_complete_baseopts=" "`, but the above code should be removed altogether anyway.

Contributor guide

Open the contributing guide

Research direction

Start at the Bash autocompletion entry point containing the _jupyter_get_flags baseopts block shown in the issue. Reproduce `jupyter note` in a Bash terminal, remove the obsolete baseopts handling, and verify that completion no longer reports the Jupyter `baseopts` command error.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, jupyter-notebook
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.