Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/examples/screenshot-with-node-canvas-webgl/README.md
Views: 789
node-canvas-webgl example
screenshot.js
Generates Screenshots of the bot world
Starting
Linux:
xvfb-run -s "-ac -screen 0 1280x1024x24" node <your script> [...args]
Mac High Sierra:
node <your script> [...args]
Installation:
Installation on a none unix based systems is none trivial. I suggest you install it on something like Ubuntu. Or a Virtual Machine running Ubuntu. Mac OS X may work too, but I have only tested it on 10.13 High Sierra.
Do npm install
to install all required node packages.
Troubleshooting (Linux):
If npm fails while installing try installing the following and try again:
Docker
If you want to run the screenshot example on windows without a vm you can install it in a Docker Container.
Building the Docker image:
Running the image and saving the screenshot to the current directory:
-e USERNAME=User1
and -e PASSWORD=<Your password>
can be added if the server is not running in offline mode.