Re: [jupyter] domain jupyter.org is not accessable

2020-04-28 Thread 'Ilya Kazakevich' via Project Jupyter
Consider using VPN service that resides outside of Russia.

-- 
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 jupyter+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/dccb0407-51e5-4b31-b9b7-f293ff4b96a4%40googlegroups.com.


Re: [jupyter] domain jupyter.org is not accessable

2020-04-14 Thread 'Ilya Kazakevich' via Project Jupyter
https://isitblockedinrussia.com/?host=jupyter.org

On Thu, Apr 9, 2020 at 7:52 PM Afshin T. Darian  wrote:

> Hello Gennadiy,
>
> I'm sorry you're having issues accessing the site. My suspicion is that
> the issue resides with either your ISP or something upstream of them.
>
> I hope you regain access to jupyter.org soon.
>
> All the best,
>
> Afshin T. Darian
>
> On Thu, Apr 9, 2020 at 5:47 PM Геннадий Кондратьев 
> wrote:
>
>> Hi all
>>
>> I tried to go to th domain jupyter.org (open the official site) and I
>> had an error - site can't be reached (ERR_CONNECTION_REFUSED). When I use
>> my company VPN then it's all ok. I'm in Russia, Saint Petersburg
>> What's the f problem?
>>
>> Best Regards
>>
>> --
>> 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 jupyter+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/498438b0-aee0-4e39-b14d-d842676ee446%40googlegroups.com
>> 
>> .
>>
> --
> 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 jupyter+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/CAJ%2BUHteagMy0FOEh1_Ri2dYM%3DAbGGABc5T%3DnGg%2BfOcokO6quAg%40mail.gmail.com
> 
> .
>

-- 
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 jupyter+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAMQsgbTih-ZVDW%3Dt_1yqMQz_OyTetLvFCjhc6%2BmxKJh2%2BifiZA%40mail.gmail.com.


Re: [jupyter] How does "stream" message, sent as reply to comm, bound to cell?

2019-09-23 Thread 'Ilya Kazakevich' via Project Jupyter
Thank you, Jason.
It is clear now.

On Mon, Sep 23, 2019 at 8:01 PM Jason Grout  wrote:

> The view is the one to actually send the comm message from js:
> https://github.com/jupyter-widgets/ipywidgets/blob/a311d753385f0867c34525eacad9496108e43cc1/packages/controls/src/widget_button.ts#L124
>
> In the classic Notebook, the view registers a display callback that puts
> any output coming back from the kernel in the cell containing the view. The
> process for getting that callback right is a bit convoluted, involving
> asking the widget manager for the right callback, etc. The relevant code is
> at
> https://github.com/jupyter-widgets/ipywidgets/blob/a311d753385f0867c34525eacad9496108e43cc1/widgetsnbextension/src/manager.js#L311-L335
>
> In JupyterLab, right now nothing is done with the output, so the output
> essentially disappears: . We are working on a logging extension (hopefully
> merged for jlab 1.2) that will log a message with any output returned from
> the kernel.
>
> In the docs, we also encourage people to use the OutputWidget to
> explicitly capture output if that's what you want:
> https://ipywidgets.readthedocs.io/en/latest/examples/Output%20Widget.html#Debugging-errors-in-callbacks-with-the-output-widget
>
> Thanks,
>
> Jason
>
>
> On Mon, Sep 23, 2019 at 9:45 AM 'Ilya Kazakevich' via Project Jupyter <
> jupyter@googlegroups.com> wrote:
>
>> Hello,
>> I have the following code
>>
>> ```
>>
>> btn = widgets.Button(description='Medium')
>> display(btn)
>> def btn_eventhandler(obj):
>> print('Hello from the {} button!'.format(obj.description))
>> btn.on_click(btn_eventhandler)
>>
>> ```
>>
>> When I click on the button, it sends comm message to python side.
>> Python replies with "stream" message.
>>
>> As I understand, button widget uses it's model to send comm message.
>> Model may have more than one view.
>> So, how does jupyter know which cell should be used to output this stream?
>>
>> I know that for regular code execution it registers callback and uses
>> "parent" header of reply, and I am sure something similar takes place here,
>> but I don't see any callback registered by view nor by model.
>>
>> Thank you.
>> Ilya.
>>
>>
>>
>> --
>> 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 jupyter+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/CAMQsgbSoR3Smw_zHrBW%3DL4OSYgtuk1LUo71OY7bCdFAybA5JoQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jupyter/CAMQsgbSoR3Smw_zHrBW%3DL4OSYgtuk1LUo71OY7bCdFAybA5JoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 jupyter+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/CAPDWZHwstENV7CWxVny7bKkFwqeK4gWvZcoeCX66bnkivOG_YQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jupyter/CAPDWZHwstENV7CWxVny7bKkFwqeK4gWvZcoeCX66bnkivOG_YQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 jupyter+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAMQsgbQMi8uWtdmrAGssqm7hAULMsgv4cUamm0MonpHJswEPrw%40mail.gmail.com.


[jupyter] How does "stream" message, sent as reply to comm, bound to cell?

2019-09-23 Thread &#x27;Ilya Kazakevich' via Project Jupyter
Hello,
I have the following code

```

btn = widgets.Button(description='Medium')
display(btn)
def btn_eventhandler(obj):
print('Hello from the {} button!'.format(obj.description))
btn.on_click(btn_eventhandler)

```

When I click on the button, it sends comm message to python side.
Python replies with "stream" message.

As I understand, button widget uses it's model to send comm message.
Model may have more than one view.
So, how does jupyter know which cell should be used to output this stream?

I know that for regular code execution it registers callback and uses
"parent" header of reply, and I am sure something similar takes place here,
but I don't see any callback registered by view nor by model.

Thank you.
Ilya.

-- 
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 jupyter+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAMQsgbSoR3Smw_zHrBW%3DL4OSYgtuk1LUo71OY7bCdFAybA5JoQ%40mail.gmail.com.


Re: [jupyter] clear_output and display widgets (from ipywidgets) connection

2019-07-11 Thread Ilya Kazakevich
Jason, William, thank you.
I now understand how this redirection works. It would be nice to document 
it somewhere in https://jupyter-notebook.readthedocs.io/en/stable/comms.html

Yes, we are implementing ipywidgets for PyCharm:)

Ilya.



-- 
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 jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/d5067a08-a694-4118-a653-1696c0721912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] clear_output and display widgets (from ipywidgets) connection

2019-07-10 Thread Ilya Kazakevich
Thank you!
I was trying to understand how is it implemented technically, how it works 
under the hood

-- 
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 jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/a5eb471d-8c74-48fe-bdab-aa75bc100d77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] clear_output and display widgets (from ipywidgets) connection

2019-07-10 Thread Ilya Kazakevich
Hello,

According to manual, ``clear_output`` event should clear whole cell output.

But with the following code

from ipywidgets import widgets
from IPython.display import clear_output
out = widgets.Output(layout={'border': '1px solid black'})
out.append_display_data(10)
display(out)
display("20")
out.clear_output()

only "10" is cleared, while "20" stays untouched.

I sniffed websocket, and I see absolutely regular "clear_output" is sent. 
Then, how does jupyter "understands" that only widget content must be 
cleared? This is not comm message, so no connection to widget is made.
How does it work?

Any help (doc or source link probably) is appreciated.

Thank you.
Ilya.

-- 
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 jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/11d9b97c-5827-4b48-b424-63c92c8f6de5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.