jupyter
jupyter copied to clipboard
Require TRAMP from ob-jupyter
Fixes #261
But this will load the whole TRAMP package even when the user has no intention to use commands that require TRAMP functions. A nicer thing would be to ask TRAMP developers to add an ###autoload
tag to the function tramp-tramp-file-p
. But it would take much time until a new TRAMP version will be released. So maybe a better thing to do now would be to add something like this instead of (require 'tramp)
in ob-jupyter.el
:
(autoload 'tramp-tramp-file-p "tramp" "Return t if NAME is a string with Tramp file name syntax." nil nil)
Thank you, that's a good point. Updated to use your suggestion.
Shouldn't we have the autoload somewhere closer to jupyter-tramp-file-name-p
? For example somewhere in jupyter-tramp.el
. Why does it need to be in ob-jupyter.el
? The problem doesn't really have anything to do with Org.