Skip to content

Add sys_prefix option to mirror --sys-prefix#655

Merged
flying-sheep merged 1 commit intoIRkernel:masterfrom
rkdarst:rkdarst/sys-prefix
Apr 11, 2020
Merged

Add sys_prefix option to mirror --sys-prefix#655
flying-sheep merged 1 commit intoIRkernel:masterfrom
rkdarst:rkdarst/sys-prefix

Conversation

@rkdarst
Copy link
Contributor

@rkdarst rkdarst commented Mar 30, 2020

In my work deploying jupyter to people, I've been annoyed that there
is no --sys-prefix equivalent for IRkernel. Well, maybe I should do
something about it...

  • Add installspec(sys_prefix=TRUE) option to install using the
    equivalent of --sys-prefix. Support added in jupyter-client 4.3
    (2016). This is passed directly to the underlying jupyter kernelspec install command.
  • No tests yet, but user=TRUE doesn't seem to be either...

I'm not an R expert, and I haven't even tested this code myself. But
I figure that making prototype quickly is better than abstract
discussion, so here it is. This would have saved me plenty of time
over the years.

Whether or not this goes through, I will try to improve the
installation docs some - it would have also saved me time, as a
cluster manager who needs to know some more details about what's going
on.

Copy link
Member

@flying-sheep flying-sheep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! You have to add the docs to the roxygen2 comment though, and build the .Rd file using roxygen2.

@rkdarst rkdarst force-pushed the rkdarst/sys-prefix branch from 84855de to 579e9cf Compare April 7, 2020 19:45
- Add installspec(sys_prefix=TRUE) option to install using the
  equivalent of --sys-prefix.  Support added in jupyter-client 4.3
  (2016).
- Not tested yet, but user=TRUE doesn't seem to be either...
- Also document just how these work, as a help to people who need to
  know this detail in order to manage an installation.
@rkdarst rkdarst force-pushed the rkdarst/sys-prefix branch from 579e9cf to 0655665 Compare April 7, 2020 20:50
@rkdarst
Copy link
Contributor Author

rkdarst commented Apr 7, 2020

OK, I managed to fix the doc issue, and added some more docs about it. In the process I found a syntax error in the R file, which is now fixed.

So... any other suggestions? I still haven't given this any tests at all... I'm not that much of an R user! Maybe I can ask someone to help with that...

@flying-sheep flying-sheep merged commit b9eea70 into IRkernel:master Apr 11, 2020
@flying-sheep
Copy link
Member

Looks good, thank you!

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.

2 participants