Git Product home page Git Product logo

jupyter_rs_vtk's Introduction

jupyter_rs_vtk

VTK widget for Jupyter

NOTE: This depends on JupyterLab 3.x

Installation

To install use pip:

$ pip install .
$ jupyter labextension install .

For a development installation (requires npm),

$ git clone https://github.com/radiasoft/jupyter_rs_vtk.git
$ cd jupyter_rs_vtk
$ pip install -e .
$ jlpm install:extension

jupyter_rs_vtk's People

Contributors

dependabot[bot] avatar e-carlin avatar mkeilman avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

trostn

jupyter_rs_vtk's Issues

geometry color

I'm not sure if this is currently an issue - this was reported from BNL on on 3/9:

The final question is that Dean is trying to use RadiaSoft’s development for Jupyter Notebooks, and can’t get colors for geometries. Is this something you also faced, but then somehow were able to fix?

Add cut planes

Add an API to allow users to add a cut plane for viewing cross-sections, and the UI to control them

Failed Install Debian 8

I've been trying to install jupyter-rs-vtk and -radia on debian 8 under python 3.7. I gathered that vtk was a prerequisite, and it looks like nodejs (npm) as well?

I've tried this using nodejs 13.0.1 and 13.6.0. When I attempt
pip install . --user
the install proceeds without issue (but of course it's not usable without the extensions enabled). However if I do this using sudo I get the error message copied below.

Is there some config step or package I may be missing on this?

Best Regards

Processing /root/jupyter-rs-vtk
ERROR: Command errored out with exit status 1:
command: /opt/apps/python/3.7.3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-_8kbxun0/setup.py'"'"'; file='"'"'/tmp/pip-req-build-_8kbxun0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-_8kbxun0/pip-egg-info
cwd: /tmp/pip-req-build-_8kbxun0/
Complete output (41 lines):
setup.py entered
$PATH=/opt/apps/nodejs/13.6.0/bin:/opt/apps/gcc-7_4/openssl/1.1.1c/bin:/opt/apps/gcc/7.4/bin:/opt/apps/python/3.7.3/bin:/root/.local/3.7.3/bin:/opt/apps/slurm/19.05.0/bin:/opt/apps/slurm/19.05.0/sbin:/opt/conda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lpp/mmfs/bin
running egg_info
running jsdeps
6.13.4
6.13.4
Installing build dependencies with npm. This may take a while...
npm WARN prepublish-on-install As of npm@5, prepublish scripts are deprecated.
npm WARN prepublish-on-install Use prepare for build steps and prepublishOnly for upload-only.
npm WARN prepublish-on-install See the deprecation note in npm help scripts for more information.
npm WARN lifecycle [email protected]~prepublish: cannot run in wd [email protected] webpack (wd=/tmp/pip-req-build-_8kbxun0/js)
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 3494 packages in 2.107s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
rebuilding js and css failed
missing files: ['/tmp/pip-req-build-_8kbxun0/jupyter_rs_vtk/static/extension.js', '/tmp/pip-req-build-_8kbxun0/jupyter_rs_vtk/static/index.js']
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-req-build-_8kbxun0/setup.py", line 181, in <module>
    setup(**setup_args)
  File "/opt/apps/python/3.7.3/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/opt/apps/python/3.7.3/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/opt/apps/python/3.7.3/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/opt/apps/python/3.7.3/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-req-build-_8kbxun0/setup.py", line 45, in run
    raise e
  File "/tmp/pip-req-build-_8kbxun0/setup.py", line 38, in run
    self.distribution.run_command('jsdeps')
  File "/opt/apps/python/3.7.3/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-req-build-_8kbxun0/setup.py", line 118, in run
    raise ValueError(msg)
ValueError: Missing file: /tmp/pip-req-build-_8kbxun0/jupyter_rs_vtk/static/extension.js
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.