Interactive IPython kernel for Jupyter with a built in Vulkan graphics engine
Project description
Pluto [![Build Status](https://travis-ci.org/n8vm/Pluto.svg?branch=master)](https://travis-ci.org/n8vm/Pluto)
===========
``Pluto`` is a Vulkan based graphics engine. It uses a Python 3 interpreter to create and edit 3D scenes at runtime, and has support for Jupyter notebook and Jupyter lab environments. Since it uses a python interpreter instead of a scripting language like LUA, users can import their own modules, like PyTorch or Tensorflow, and take advantage of popular python linear algebra libraries like numpy.
Since Pluto uses Vulkan as it's back end, it can be built cross platform. It has support for VR headsets through OpenVR, and can optionally use Nvidia's RTX Raytracing extension to improve render quality.
At the moment, Pluto is mainly used for rapid prototyping in both C++ and in python. Forking is highly encouraged, as well as GitHub issues!
<!-- PyPI Prebuilt Installation
------------
(This does not work right now on non-windows platforms)
To install ``Pluto`` from PyPI::
pip install Pluto
python -m Pluto.install -->
Building from scratch
------------
# On all platforms, clone submodules!
`git clone --recurse-submodules https://github.com/n8vm/Pluto`
### On Linux
1. Install a version of CMake greater than or equal to 3.13 from here: [CMake Download Website](https://cmake.org/download/)
2. `sudo apt update`
4. `sudo apt install lunarg-vulkan-sdk swig3.0 xorg-dev python3.6-dev gcc-8 g++-8`
5. Optionally install Visual Studio Code here: [Visual Studio Code](https://code.visualstudio.com/docs/?dv=linux64_deb)
6. `mkdir build`
7. `mkdir install`
8. If building from commandline
..1. `cd build`
..2. `cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-8 ../`
..3. `cmake --build . --target install --config Release`
8. If building from visual studio code
..1. `code .`
..2. `CTL` + `Shift` + `P`
..3. Type and enter `CMake: configure`
..4. Type and enter `CMake: install`
### On Windows
1. Open command prompt in "Administrator Mode"
2. Install Chocolatey: `@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"`
3. `choco install cmake python3 swig`
4. Install the LunarG SDK from here: [LunarG Download Website](https://vulkan.lunarg.com/sdk/home#windows)
5. Install Visual Studio Code and Visual Studio 2017 C++ Build Tools (Recommended), or just Visual Studio 2017.
..1. If using Visual Studio Code, make sure to download the CMake Tools extension, the C/C++ extension from Microsoft, and optionally a GLSL syntax highlighting extension
6. mkdir build
7. mkdir install
8. (If using Visual Studio Code)
..1. `code .`
..2. `CTL` + `Shift` + `P`
..3. Type and enter `CMake: configure`
..4. Type and enter `CMake: install`
8. (If using Visual Studio 2017)
..1. `cd build`
..2. `cmake -G "Visual Studio 15 2017 Win64`
..3. Open the generated Visual Studio Solution File (the .sln)
..4. Right click the "INSTALL" target, and click build
### On MacOS
1. Install the LunarG SDK from here: [LunarG Download Website] (https://vulkan.lunarg.com/sdk/home#mac)
..1. Follow this guide: [LunarG MacOS Getting Started](https://vulkan.lunarg.com/doc/sdk/1.1.97.0/mac/getting_started.html )
..2. Add `vulkansdk/macOS/bin` to your `PATH`
..3. Optionally set `VK_LAYER_PATH` to `vulkansdk/macOS/etc/vulkan/explicit_layer.d` to support validation layers
..4. Set `VK_ICD_FILENAMES` to `vulkansdk/macOS/etc/vulkan/icd.d/MoltenVK_icd.json`
..5. Set `VULKAN_SDK` to `vulkansdk/macOS`
2. `brew install cmake`
3. `brew install swig`
4. `mkdir build`
5. `mkdir install`
6. If building from commandline
..1. `cd build`
..2. `cmake -DCMAKE_BUILD_TYPE=Release ../`
..3. `cmake --build . --target install --config Release`
6. If building from visual studio code
..1. `code .`
..2. `CTL` + `Shift` + `P`
..3. Type and enter `CMake: configure`
..4. Type and enter `CMake: install`
===========
``Pluto`` is a Vulkan based graphics engine. It uses a Python 3 interpreter to create and edit 3D scenes at runtime, and has support for Jupyter notebook and Jupyter lab environments. Since it uses a python interpreter instead of a scripting language like LUA, users can import their own modules, like PyTorch or Tensorflow, and take advantage of popular python linear algebra libraries like numpy.
Since Pluto uses Vulkan as it's back end, it can be built cross platform. It has support for VR headsets through OpenVR, and can optionally use Nvidia's RTX Raytracing extension to improve render quality.
At the moment, Pluto is mainly used for rapid prototyping in both C++ and in python. Forking is highly encouraged, as well as GitHub issues!
<!-- PyPI Prebuilt Installation
------------
(This does not work right now on non-windows platforms)
To install ``Pluto`` from PyPI::
pip install Pluto
python -m Pluto.install -->
Building from scratch
------------
# On all platforms, clone submodules!
`git clone --recurse-submodules https://github.com/n8vm/Pluto`
### On Linux
1. Install a version of CMake greater than or equal to 3.13 from here: [CMake Download Website](https://cmake.org/download/)
2. `sudo apt update`
4. `sudo apt install lunarg-vulkan-sdk swig3.0 xorg-dev python3.6-dev gcc-8 g++-8`
5. Optionally install Visual Studio Code here: [Visual Studio Code](https://code.visualstudio.com/docs/?dv=linux64_deb)
6. `mkdir build`
7. `mkdir install`
8. If building from commandline
..1. `cd build`
..2. `cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-8 ../`
..3. `cmake --build . --target install --config Release`
8. If building from visual studio code
..1. `code .`
..2. `CTL` + `Shift` + `P`
..3. Type and enter `CMake: configure`
..4. Type and enter `CMake: install`
### On Windows
1. Open command prompt in "Administrator Mode"
2. Install Chocolatey: `@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"`
3. `choco install cmake python3 swig`
4. Install the LunarG SDK from here: [LunarG Download Website](https://vulkan.lunarg.com/sdk/home#windows)
5. Install Visual Studio Code and Visual Studio 2017 C++ Build Tools (Recommended), or just Visual Studio 2017.
..1. If using Visual Studio Code, make sure to download the CMake Tools extension, the C/C++ extension from Microsoft, and optionally a GLSL syntax highlighting extension
6. mkdir build
7. mkdir install
8. (If using Visual Studio Code)
..1. `code .`
..2. `CTL` + `Shift` + `P`
..3. Type and enter `CMake: configure`
..4. Type and enter `CMake: install`
8. (If using Visual Studio 2017)
..1. `cd build`
..2. `cmake -G "Visual Studio 15 2017 Win64`
..3. Open the generated Visual Studio Solution File (the .sln)
..4. Right click the "INSTALL" target, and click build
### On MacOS
1. Install the LunarG SDK from here: [LunarG Download Website] (https://vulkan.lunarg.com/sdk/home#mac)
..1. Follow this guide: [LunarG MacOS Getting Started](https://vulkan.lunarg.com/doc/sdk/1.1.97.0/mac/getting_started.html )
..2. Add `vulkansdk/macOS/bin` to your `PATH`
..3. Optionally set `VK_LAYER_PATH` to `vulkansdk/macOS/etc/vulkan/explicit_layer.d` to support validation layers
..4. Set `VK_ICD_FILENAMES` to `vulkansdk/macOS/etc/vulkan/icd.d/MoltenVK_icd.json`
..5. Set `VULKAN_SDK` to `vulkansdk/macOS`
2. `brew install cmake`
3. `brew install swig`
4. `mkdir build`
5. `mkdir install`
6. If building from commandline
..1. `cd build`
..2. `cmake -DCMAKE_BUILD_TYPE=Release ../`
..3. `cmake --build . --target install --config Release`
6. If building from visual studio code
..1. `code .`
..2. `CTL` + `Shift` + `P`
..3. Type and enter `CMake: configure`
..4. Type and enter `CMake: install`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file Pluto-1.1.1-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: Pluto-1.1.1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 22.2 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a91fbb0413210eab6699da640db6810b20a8902cb2aa9e88335d743217053fe4 |
|
MD5 | fce90278f9e2b31a26c9d219ec77c9d8 |
|
BLAKE2b-256 | 8eabc4ec2a870369371891960d2b31fb704e31e81d9852796b873eb510f7f529 |