Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

JuliaCon 2020 | Display, show and print -- how Julia's display system works | Fredrik Ekre

Автор: The Julia Programming Language

Загружено: 2020-07-31

Просмотров: 4278

Описание:

After executing Julia code you are presented with the result. If you are working in the Julia REPL you are usually seeing just a basic text representation. However, in other environments, such as in a Jupyter notebook, you sometimes see a more rich representation of the output. This talk will present how Julia's display system works when presenting output to the user, which methods are called when, and how to implement "pretty printing" for custom types.

When Julia finishes a computation and obtains a value the user is presented with the result. In the Julia REPL the result is usually represented as plain text. In other environments, such as in a Jupyter notebook, you sometimes see more rich representations, for example some values display as HTML, and others as images.

The main functions responsible for output in Julia are display and show. Usually display is the first method to be called when an object is presented to the user. The display function is implemented by displays such as the Julia REPL, the IDE or the notebook interface. Next, display requests output from show with a specific so-called MIME-type. Which MIME-types that are requested depends on what output the display is able to present back to the user. For example, the REPL mostly works with the text/plain MIME-type, and the notebook display supports multiple additional MIME-types, for example image/png for image output, text/html for HTML output, and so on. Given this rough overview the display system might seem rather simple, but there are many hidden complexities.

In order to take advantage of the rich display system and implement "pretty printing" for a custom type it is generally enough to implement methods of show with specific MIME-types. All types get a default text representation, but this can easily be overridden by implementing show with the text/plain MIME type. If the type can be represented in richer formats it is simple to add additional methods. For example, in order to support image output in a notebook it is enough to implement show with the image/png MIME type.

This talk will present how Julia's display system works and go through the process of taking an output object and generating output to present the user with. The talk will also examplify this process by discussing how to customize the output for your own types. TimeStamps:

00:00 Welcome!
00:10 Help us add time stamps or captions to this video! See the description for details.

Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: https://github.com/JuliaCommunity/You...

Interested in improving the auto generated captions? Get involved here: https://github.com/JuliaCommunity/You...

JuliaCon 2020 | Display, show and print -- how Julia's display system works | Fredrik Ekre

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

JuliaCon 2020 | Manifolds in Julia – Manifolds.jl & ManifoldsBase.jl | Ronny Bergmann

JuliaCon 2020 | Manifolds in Julia – Manifolds.jl & ManifoldsBase.jl | Ronny Bergmann

Reproducible Publications with Julia and Quarto | J.J. Allaire | JuliaCon 2022

Reproducible Publications with Julia and Quarto | J.J. Allaire | JuliaCon 2022

JuliaCon 2020 | Adventures in Avoiding Allocations | Brian Jackson

JuliaCon 2020 | Adventures in Avoiding Allocations | Brian Jackson

The 9th annual JuliaCon, 2022 (Online)

The 9th annual JuliaCon, 2022 (Online)

Основы ПЛК: структурированный текст

Основы ПЛК: структурированный текст

Lecture 36: Alan Edelman and Julia Language

Lecture 36: Alan Edelman and Julia Language

Я в опасности

Я в опасности

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

Multi-Threading Using Julia for Enterprises

Multi-Threading Using Julia for Enterprises

Почему любители часто круче «профессионалов»?

Почему любители часто круче «профессионалов»?

ВОЙНА ИЗ ПОСЛЕДНИХ СИЛ. БЕСЕДА С ИГОРЕМ ЛИПСИЦЕМ @IgorLipsits_1950

ВОЙНА ИЗ ПОСЛЕДНИХ СИЛ. БЕСЕДА С ИГОРЕМ ЛИПСИЦЕМ @IgorLipsits_1950

David Higgins - Introduction to Julia for Python Developers

David Higgins - Introduction to Julia for Python Developers

"От такого удара можно и не оправиться": Ранкс объяснил, что за безумная сила несется к нам

Что такое квантовая теория

Что такое квантовая теория

Keynote: Scientific Machine Learning | Prof Karen Willcox | JuliaCon 2020

Keynote: Scientific Machine Learning | Prof Karen Willcox | JuliaCon 2020

⚡ПОРТНИКОВ разложил все по полочкам! Так вот что с ТРАМПОМ и ГРЕНЛАНДИЕЙ. Не поверите, что выплыло

⚡ПОРТНИКОВ разложил все по полочкам! Так вот что с ТРАМПОМ и ГРЕНЛАНДИЕЙ. Не поверите, что выплыло

Interactive notebooks ~ Pluto.jl | Fons van der Plas | JuliaCon 2020

Interactive notebooks ~ Pluto.jl | Fons van der Plas | JuliaCon 2020

Теренс Тао о том, как Григорий Перельман решил гипотезу Пуанкаре | Лекс Фридман

Теренс Тао о том, как Григорий Перельман решил гипотезу Пуанкаре | Лекс Фридман

Понимание Z-преобразования

Понимание Z-преобразования

JuliaCon 2020 | Dispatching Design Patterns | Aaron Christianson

JuliaCon 2020 | Dispatching Design Patterns | Aaron Christianson

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com