weixin_39719077
weixin_39719077
2020-12-09 08:36

ensure jupyter dir is on PATH

before dispatching to subcommands

This addresses the case when jupyter is executed by absolute path and its dir is not on PATH, which would result in all subcommands not being found.

closes jupyter/notebook#448

该提问来源于开源项目:jupyter/jupyter_core

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

8条回答

  • weixin_39637924 weixin_39637924 4月前

    If that doesn't exist, then jupyter notebook won't work. You may be able to install the notebook without sudo access, depending on how the server is configured.

    点赞 评论 复制链接分享
  • weixin_39874809 weixin_39874809 4月前

    This still failing for me in Windows 8: when I run \somepath\jupyter.exe notebook it fails with jupyter-notebook not found, but when I add \somepath to the PATH environment variable it works (actually spelled Path, but Windows environment vars should be case-insensitive case-preserving). It also works if I run \somepath\jupyter-notebook.exe directly.

    jupyter --version prints 4.4.0.

    点赞 评论 复制链接分享
  • weixin_39602005 weixin_39602005 4月前

    Weird that I JUST hit this today when I tried to create an init.d entry for notebook. Thankfully, the workaround works. :)

    点赞 评论 复制链接分享
  • weixin_39928818 weixin_39928818 4月前

    Which dir?

    root:/# jupyter --paths config: /root/.jupyter /usr/etc/jupyter /usr/local/etc/jupyter /etc/jupyter data: /root/.local/share/jupyter /usr/local/share/jupyter /usr/share/jupyter runtime: /root/.local/share/jupyter/runtime

    点赞 评论 复制链接分享
  • weixin_39637924 weixin_39637924 4月前

    The directory where the Jupyter command itself is. See dirname $(which jupyter).

    点赞 评论 复制链接分享
  • weixin_39678525 weixin_39678525 4月前

    I am on a server (without sudo access) and facing this issue. But ipython notebook works fine. Also, jupyter's dir (/usr/local/bin) is in the PATH variable. What can be done?

    点赞 评论 复制链接分享
  • weixin_39637924 weixin_39637924 4月前

    Where is the jupyter-notebook script?

    点赞 评论 复制链接分享
  • weixin_39678525 weixin_39678525 4月前

    I doubt there exists any. which jupyter-notebook returns nothing.

    点赞 评论 复制链接分享

相关推荐