from IPython.display import HTML
HTML('<a href="{https://localhost:8080/foo}" target="magma_help">Magma help on FOO</a>')
--
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+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/10396a1e-2cb7-4365-ae03-60c87953b830%40googlegroups.com.
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 jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/3ff07e3b-e0fc-4531-966f-14ac875d0655%40googlegroups.com.
2. The execute_result vs display_data difference you see is from how you evaluated things. execute_result basically returns the result of displaying the last line of execution. display_data messages come from explicitly displaying something. To see the display_data message, do something like `display(HTML(...))`.
| return {'status': 'ok', 'execution_count': self.execution_count, 'payload': [], 'user_expressions': {}} where "content" is a dictionary that successfully encodes the information for displaying the desired "<a href...". Would it be more appropriate to send an 'execute_result' response instead? Does it matter? Would it just be a matter of replacing 'display_data' with 'execute_result'? |
--
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+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/b5b5b2e3-55f5-4ee3-b948-e0b6a826ee24%40googlegroups.com.