Friday, May 17, 2024
HomeJavaJetBrains Launches the Kotlin Pocket book Plugin for IntelliJ IDEA

JetBrains Launches the Kotlin Pocket book Plugin for IntelliJ IDEA


Utilizing the experimental Kotlin Pocket book plugin for IntelliJ IDEA, builders will be capable to mix code, visualizations, and textual content, in addition to to run code snippets and examine their outcomes, all in a single doc.

Based on JetBrains, the Kotlin Pocket book plugin makes it simple to experiment, prototype, and doc code.

The Kotlin Pocket book plugin brings the facility of interactive improvement to IntelliJ IDEA, supplementing the complete energy of the IDE’s language assist for Kotlin mixed with the versatile visualization capabilities of browsers.

A pocket book is manufactured from cells, every of which accommodates both code or textual content. Whenever you run the code inside a cell, its result’s displayed beneath the cell. Cells might be executed in any order and modified and re-run at any second, together with declaring and re-declaring variables.

The Kotlin Pocket book for IntelliJ IDEA helps quite a lot of totally different output codecs, reminiscent of easy textual content, HTML, photos, wealthy textual content utilizing Markdown, and LaTeX for formulation and equations.

Inside a pocket book, you should use any perform or sort from the usual library. You too can embody dependencies from the venture the pocket book belongs to, in addition to specify them in a Maven configuration file or with the DependsOn annotation. The final two choices require figuring out the Maven coordinates of the dependency, which might be cumbersome. To keep away from this, you may sort the %use command inside a cell to show an inventory of widespread libraries to obtain and import them based on your necessities.

The Kotlin Pocket book additionally permits extending its performance via exterior libraries. For instance, an extension library may outline code to be run earlier than and after every cell execution, or preprocess a cell’s content material, customise end result show, and so forth. This opens up many potentialities to create interactive consumer experiences, says JetBrains.

As a remaining observe, notebooks might be shared with others. That is attainable due to the adoption of the Jupyter format, which might be rendered in any pocket book net viewer, together with GitHub’s.

You may set up the Kotlin Pocket book plugin from JetBrains Market utilizing model 2023.1.2 or newer of IntelliJ IDEA Final.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments