webknossos-libs icon indicating copy to clipboard operation
webknossos-libs copied to clipboard

Consider interactive mode

Open philippotto opened this issue 6 years ago • 5 comments

Wild idea (not sure whether worth the effort):

We could provide an interactive mode (cuber -i?) which would guide the user through his/her task. Similar to npm init, cuber could ask the user what should be done, what the input format and other arguments are etc.

I think this would increase the usability by a great margin. However, implemention and maintenance effort contrast this obviously. Maybe worth a thought. If we end up with another frontend, it's probably not worth it. Open for discussion...

philippotto avatar Nov 23 '18 09:11 philippotto

I think this could be useful for one-off conversions. I believe most of the time, the users will run the cuber as part of batch processing.

normanrz avatar Nov 23 '18 12:11 normanrz

Even for finding the right command for batch processing this could be useful. At the end of the interactive mode, there could be some output, such as:

According to your input, the following command will be executed (copy the command for future reuse):
python -m wkcuber \
  --layer_name color \
  --scale 11.24,11.24,25 \
  --name great_dataset \
  data/source/color data/target

Execution will start in 5 seconds...

philippotto avatar Nov 23 '18 16:11 philippotto

Sound's like something I'd love to try in the next hackathon :pick:

jstriebel avatar Jan 06 '22 13:01 jstriebel

Tbh I think people are more interested in using the library interface in their scripts/notebooks than the CLI. Is there a way to have code-completion/intellisense in jupyter notebooks? That could be very cool.

normanrz avatar Jan 06 '22 13:01 normanrz

Jupyter(lab) already has autocompletion on tab-press, and there's https://github.com/jupyter-lsp/jupyterlab-lsp

jstriebel avatar Jan 06 '22 13:01 jstriebel