Here is my /etc/hosts:

127.0.0.1    localhost
127.0.1.1    florian

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


2017-09-27 15:34 GMT+02:00 Thomas Kluyver <[email protected]>:

> What's in /etc/hosts ? I wonder if it resolves 'localhost' to an IPv6
> address and then can't connect to it for some reason.
>
> On 27 September 2017 at 14:22, Florian Aspart <[email protected]>
> wrote:
>
>> You're right this was not the problem. It worked a little bit after
>> disabling internet (unplugging ethernet cable) but stopped working again,
>> probably due to some caching.
>>
>> This seems to be, indeed, a dns issue: using 127.0.0.1 instead of
>> localhost works fine. Alternatively, disabling IPv6 for the dns in firefox
>> (setting network.dns.disableIPv6 = True in about:config) also fixed the
>> problem for the address localhost.
>>
>> Thanks again for the help!
>>
>> 2017-09-27 12:27 GMT+02:00 Thomas Kluyver <[email protected]>:
>>
>>> On 27 September 2017 at 09:54, Florian Aspart <[email protected]>
>>> wrote:
>>>>
>>>> I can connect to the notebook "home" page but when I open a new kernel
>>>> it cannot connect to it. Therefore it's definitely not a proxy issue.
>>>>
>>>
>>> It's still possible that it's something like that. Some proxies have
>>> trouble with websockets (which we use to connect to the kernel). Some
>>> internet security software also interferes with websockets, but that
>>> usually affects Windows users, whereas you said you're running Ubuntu.
>>>
>>>
>>>> I'm running the Notebook version 5.0 but I also have a bunch of
>>>> nbextensions
>>>> <https://github.com/ipython-contrib/jupyter_contrib_nbextensions>
>>>> running. I think one of them is causing the problem: I disabled all of them
>>>> and, though I initially need internet to start the notebook, I can still
>>>> run the notebooks in firefox after turnin off internet.
>>>> I'll try to find which extensions does not work offline by disabling
>>>> them one after the other and I'll report it in case somebody has the same
>>>> problem.
>>>>
>>>
>>> That's still weird, because it shouldn't require an internet connection
>>> at any point. How are you turning off internet when you test this? It does
>>> use the special 'loopback' network interface; it may be that you've done
>>> something that disables all network interfaces, but I don't think it's
>>> likely - I don't even know a command for that.
>>>
>>> You could also try upgrading to notebook 5.1. I don't think it's likely
>>> to make a difference to that, but you never know.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Project Jupyter" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/jupyter/IiS54b-icOk/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jupyter/CAOvn4qh81FRc5pm3hKn2NMmo-KzJ_LuDEr%2Bx_cqvVd%3D
>>> CPea_gA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jupyter/CAOvn4qh81FRc5pm3hKn2NMmo-KzJ_LuDEr%2Bx_cqvVd%3DCPea_gA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jupyter/CAGA3%2B%2BK_V%2BiB9j0oz2QCOHhwaUBmStP49oK%3D5yM
>> %2BeJV%3DvtWC4w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jupyter/CAGA3%2B%2BK_V%2BiB9j0oz2QCOHhwaUBmStP49oK%3D5yM%2BeJV%3DvtWC4w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Project Jupyter" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jupyter/IiS54b-icOk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/CAOvn4qjSSCYT6xYR6Xd-e6wk-Cf%2B_aVRUdaFhvRrW9eaW8%2Bx6g%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/jupyter/CAOvn4qjSSCYT6xYR6Xd-e6wk-Cf%2B_aVRUdaFhvRrW9eaW8%2Bx6g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAGA3%2B%2BJPT%2BNOyNwWXzXBSXnVRmB%3D3VywS5VQpO%3Df70QLo1-nWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to