SimpleJupyterViewer for IntelliJ IDEA
DISCLAIMER: This code was made by Geologist-programmer mostly with SourceCraft and GigaCode generation. Manual changes should be made with caution.
This plugin enables viewing Jupyter notebooks (.ipynb) directly in IntelliJ IDEA.
Features
- View Jupyter notebooks in a formatted HTML view
- Syntax highlighting for code cells
- Proper rendering of Markdown cells
- Cell type identification
- Integration with IntelliJ IDEA’s file system
Requirements
- IntelliJ IDEA 2024.3 or later
- Java 21
- Gradle 9.2.1
Compatibility
This plugin is compatible with:
- IntelliJ IDEA Community and Ultimate Editions
- Other JetBrains IDEs based on the IntelliJ Platform (OpenIDE)
- PyCharm
- WebStorm
- PhpStorm
- RubyMine
- GoLand
- etc.
Installation
Prerequisites
Before building the plugin, ensure you have the following installed:
-
Java 21: Download and install Java 21 from Oracle’s website or use OpenJDK.
-
Gradle 9.2.1: Download and install Gradle from the official Gradle website.
Method 1: Build from source
- Clone this repository
- Open the project in IntelliJ IDEA
- Build the plugin using Gradle
Method 2: Download pre-built plugin (will be available sometime)
- Go to the Releases page
- Download the latest
.zipfile - Install it in IntelliJ IDEA via
Settings > Plugins > Install Plugin from Disk
Building the Plugin
Using Gradle (recommended)
# Build the plugin distribution (creates a ZIP file)
./gradlew buildPlugin
# Build the project (compiles code and runs tests)
./gradlew build
# Build and run in a development instance of IntelliJ IDEA
./gradlew runIde
# Clean the build
./gradlew clean
Understanding Gradle Commands
There are two main Gradle commands used in this project:
-
./gradlew build: Compiles the source code, runs tests, and creates the necessary build artifacts. This is used primarily for development and testing. -
./gradlew buildPlugin: Creates a distributable ZIP file of the plugin that can be installed in IntelliJ IDEA. This is the command you should use when creating a plugin for distribution.
For most development work, you’ll use ./gradlew build to compile and test your changes. When you’re ready to create a plugin for installation, use ./gradlew buildPlugin.
Using provided scripts
Windows (CMD)
build.cmd
run.cmd
clean.cmd
Linux/Mac (Bash)
./build.sh
./run.sh
./clean.sh
The built plugin will be located in build/distributions/ directory.
Usage
- Open a Jupyter notebook (.ipynb) file in IntelliJ IDEA
- Right-click on the file and select “View as Jupyter Notebook”
- Or simply open the file to see its structure
Development
Project Structure
src/
├── main/
│ ├── java/ # Java source code
│ └── resources/ # Resources (icons, configuration)
└── test/
└── java/ # Unit tests
Configuration
The plugin is configured in src/main/resources/META-INF/plugin.xml.
Dependencies
Dependencies are managed via Gradle in build.gradle:
dependencies {
implementation 'org.json:json:20230227'
testImplementation 'junit:junit:4.13.2'
}
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development
Project Structure
src/
├── main/
│ ├── java/ # Java source code
│ └── resources/ # Resources (icons, configuration)
└── test/
└── java/ # Unit tests
Configuration
The plugin is configured in src/main/resources/META-INF/plugin.xml.
Dependencies
Dependencies are managed via Gradle in build.gradle:
dependencies {
implementation 'org.json:json:20230227'
testImplementation 'junit:junit:4.13.2'
}
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the APACHE 2.0 License - see the LICENSE file for details.