Skip to content
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

Allow user to pass command-line arguments to kernel #152

Open
wants to merge 1 commit into
base: 0.1.x
Choose a base branch
from

Conversation

xkjyeah
Copy link

@xkjyeah xkjyeah commented Mar 1, 2018

The Scala kernel accepts command line arguments, such as --profile, --ip, --default-repositories. It also supports passing settings to the Scala compiler, e.g. -- -Xmax-classfile-name 170 (the last one in particular is very useful when running Toree from inside Docker images or on encrypted volumes).

This patch allows users to pass command line arguments to the kernel via:

jupyter toree install \
  --kernel-opts="-- -Xmax-classfile-name 170" \
  --interpreters=Scala,PySpark,SparkR,SQL

Not sure if kernel_opts is the best name though. kernel_extra_opts may be better since --profile is already being passed to the kernel.

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