Skip to content

Introduce the new Application classes #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 17, 2022
Merged

Introduce the new Application classes #317

merged 6 commits into from
Feb 17, 2022

Conversation

mrkn
Copy link
Contributor

@mrkn mrkn commented Feb 15, 2022

The following changes are introduced in this pull-request.

  • Introducing the new Application classes
  • Use optparse to process command line arguments
  • Allow specify the kernel name in register sub command
  • Make each sub command accept --help option

TODO

  • Remove old bin/iruby
  • Activate new exxe/iruby in gemspec

@mrkn mrkn force-pushed the application_class branch from 3fd850f to 1a56d05 Compare February 16, 2022 02:56
@mrkn mrkn force-pushed the application_class branch from 1a56d05 to 795bb09 Compare February 16, 2022 05:52
@mrkn mrkn marked this pull request as ready for review February 17, 2022 07:28
@mrkn mrkn merged commit 886869a into master Feb 17, 2022
@mrkn mrkn deleted the application_class branch February 17, 2022 07:32
tikkss added a commit to tikkss/red_amber that referenced this pull request Apr 26, 2025
Unable to `quarto convert` because the kernel name `ruby3` not `ruby`:

```console
$ rake jupyter
quarto convert doc/qmd/preprocess_knock_Ruby-RedAmber.qmd -o
doc/notebook/preprocess_knock_Ruby-RedAmber.ipynb
ERROR: Jupyter kernel 'ruby' not found. Known kernels: python3, ruby3.
Run 'quarto check jupyter' with your python environment activated to
check python version used.
```

Since SciRuby/iruby#317, IRuby's default kernel name has been changed to
`ruby3` from `ruby`. However, we keep using `ruby` to respect Ruby's
strong compatibility.
tikkss added a commit to tikkss/red_amber that referenced this pull request Apr 28, 2025
Unable to `quarto convert` because the kernel name `ruby3` not `ruby`:

```console
$ rake jupyter
quarto convert doc/qmd/preprocess_knock_Ruby-RedAmber.qmd -o
doc/notebook/preprocess_knock_Ruby-RedAmber.ipynb
ERROR: Jupyter kernel 'ruby' not found. Known kernels: python3, ruby3.
Run 'quarto check jupyter' with your python environment activated to
check python version used.
```

Since SciRuby/iruby#317, IRuby's default kernel name has been changed to
`ruby3` from `ruby`. However, we keep using `ruby` to respect Ruby's
strong compatibility.

Alternatively, we can modify the jupyter engine setting in qmd files
from `ruby` to `ruby3`:

```yaml
jupyter: ruby3
```

However, this approach requires updating all qmd files whenever Ruby's
major version changes. We don't want to pay that maintenance cost.
kou pushed a commit to red-data-tools/red_amber that referenced this pull request May 15, 2025
Unable to `quarto convert` because the kernel name `ruby3` not `ruby`:

```console
$ rake jupyter
quarto convert doc/qmd/preprocess_knock_Ruby-RedAmber.qmd -o
doc/notebook/preprocess_knock_Ruby-RedAmber.ipynb
ERROR: Jupyter kernel 'ruby' not found. Known kernels: python3, ruby3.
Run 'quarto check jupyter' with your python environment activated to
check python version used.
```

Since SciRuby/iruby#317, IRuby's default kernel name has been changed to
`ruby3` from `ruby`. However, we keep using `ruby` to respect Ruby's
strong compatibility.

Alternatively, we can modify the jupyter engine setting in qmd files
from `ruby` to `ruby3`:

```yaml
jupyter: ruby3
```

However, this approach requires updating all qmd files whenever Ruby's
major version changes. We don't want to pay that maintenance cost.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant