Changing the default port for iPython notebook server / Jupyter

后端 未结 5 804
盖世英雄少女心
盖世英雄少女心 2021-02-02 07:26

I am trying to run an ipython notebook / jupyter server on a machine behind a firewall. The only port which is open is port 80. So was wondering how I can change the default por

5条回答
  •  抹茶落季
    2021-02-02 08:04

    Just FYI, running in a Docker container and changing the config to use port 80:

    c.NotebookApp.port = 80
    

    Causes these errors in turn:

    [W 18:11:42.852 NotebookApp] Permission to listen on port 80 denied.
    [W 18:11:42.853 NotebookApp] Permission to listen on port 81 denied.
    [W 18:11:42.854 NotebookApp] Permission to listen on port 82 denied.
    [W 18:11:42.855 NotebookApp] Permission to listen on port 83 denied.
    [W 18:11:42.856 NotebookApp] Permission to listen on port 84 denied.
    [W 18:11:42.857 NotebookApp] Permission to listen on port 49 denied.
    [W 18:11:42.857 NotebookApp] Permission to listen on port 24 denied.
    [W 18:11:42.858 NotebookApp] Permission to listen on port 114 denied.
    [W 18:11:42.859 NotebookApp] Permission to listen on port 58 denied.
    [W 18:11:42.860 NotebookApp] Permission to listen on port 81 denied.
    [W 18:11:42.860 NotebookApp] Permission to listen on port 153 denied.
    [W 18:11:42.861 NotebookApp] Permission to listen on port 66 denied.
    [W 18:11:42.862 NotebookApp] Permission to listen on port 60 denied.
    [W 18:11:42.862 NotebookApp] Permission to listen on port 73 denied.
    [W 18:11:42.863 NotebookApp] Permission to listen on port 103 denied.
    [W 18:11:42.863 NotebookApp] Permission to listen on port 123 denied.
    [W 18:11:42.864 NotebookApp] Permission to listen on port 131 denied.
    [W 18:11:42.864 NotebookApp] Permission to listen on port 123 denied.
    [W 18:11:42.865 NotebookApp] Permission to listen on port 21 denied.
    [W 18:11:42.865 NotebookApp] Permission to listen on port 66 denied.
    [W 18:11:42.866 NotebookApp] Permission to listen on port 156 denied.
    [W 18:11:42.867 NotebookApp] Permission to listen on port 107 denied.
    [W 18:11:42.867 NotebookApp] Permission to listen on port 1 denied.
    [W 18:11:42.868 NotebookApp] Permission to listen on port 140 denied.
    [W 18:11:42.869 NotebookApp] Permission to listen on port 54 denied.
    [W 18:11:42.869 NotebookApp] Permission to listen on port 81 denied.
    [W 18:11:42.869 NotebookApp] Permission to listen on port 134 denied.
    [W 18:11:42.870 NotebookApp] Permission to listen on port 148 denied.
    [W 18:11:42.871 NotebookApp] Permission to listen on port 27 denied.
    [W 18:11:42.871 NotebookApp] Permission to listen on port 1 denied.
    [W 18:11:42.872 NotebookApp] Permission to listen on port 137 denied.
    [W 18:11:42.873 NotebookApp] Permission to listen on port 33 denied.
    [W 18:11:42.874 NotebookApp] Permission to listen on port 163 denied.
    [W 18:11:42.875 NotebookApp] Permission to listen on port 1 denied.
    [W 18:11:42.876 NotebookApp] Permission to listen on port 59 denied.
    [W 18:11:42.877 NotebookApp] Permission to listen on port 34 denied.
    [W 18:11:42.878 NotebookApp] Permission to listen on port 74 denied.
    [W 18:11:42.879 NotebookApp] Permission to listen on port 126 denied.
    [W 18:11:42.880 NotebookApp] Permission to listen on port 92 denied.
    [W 18:11:42.880 NotebookApp] Permission to listen on port 161 denied.
    [W 18:11:42.881 NotebookApp] Permission to listen on port 1 denied.
    [W 18:11:42.882 NotebookApp] Permission to listen on port 124 denied.
    [W 18:11:42.883 NotebookApp] Permission to listen on port 146 denied.
    [W 18:11:42.883 NotebookApp] Permission to listen on port 1 denied.
    [W 18:11:42.884 NotebookApp] Permission to listen on port 155 denied.
    [W 18:11:42.884 NotebookApp] Permission to listen on port 57 denied.
    [W 18:11:42.885 NotebookApp] Permission to listen on port 1 denied.
    [W 18:11:42.886 NotebookApp] Permission to listen on port 1 denied.
    [W 18:11:42.887 NotebookApp] Permission to listen on port 139 denied.
    [W 18:11:42.887 NotebookApp] Permission to listen on port 68 denied.
    [W 18:11:42.887 NotebookApp] Permission to listen on port 14 denied.
    

提交回复
热议问题