{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'2.0.0-rc-71/1.52i'" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import imagej\n", "\n", "import scyjava_config\n", "scyjava_config.add_repositories({'clij': 'https://dl.bintray.com/haesleinhuepf/clij'})\n", "#scyjava_config.add_endpoints('net.haesleinhuepf:clij-advanced-filters_:0.16.0')\n", "\n", "ij = imagej.init('net.imagej:imagej:2.0.0-rc-71+net.haesleinhuepf:clij-advanced-filters_:0.16.0')\n", "ij.getVersion()" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'GPU: AMD Radeon Pro 560X Compute Engine'" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from jnius import autoclass\n", "CLIJx = autoclass('net.haesleinhuepf.clijx.CLIJx')\n", "clijx = CLIJx.getInstance()\n", "\n", "\"GPU: \" + clijx.getGPUName()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" }, "toc": { "base_numbering": 1, "nav_menu": {}, "number_sections": false, "sideBar": false, "skip_h1_title": false, "title_cell": "Table of Contents", "title_sidebar": "Contents", "toc_cell": false, "toc_position": {}, "toc_section_display": false, "toc_window_display": false } }, "nbformat": 4, "nbformat_minor": 2 }