All Projects → uclnlp → Egal

uclnlp / Egal

Licence: apache-2.0
easy drawing in jupyter

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Egal

Floweaver
View flow data as Sankey diagrams
Stars: ✭ 266 (+5.98%)
Mutual labels:  jupyter, svg
Minify
Go minifiers for web formats
Stars: ✭ 2,824 (+1025.1%)
Mutual labels:  svg
React Svg Inline
DEPRECATED, I recommend you the tool SVGR
Stars: ✭ 230 (-8.37%)
Mutual labels:  svg
Mapshaper
Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files
Stars: ✭ 2,813 (+1020.72%)
Mutual labels:  svg
Vue Content Loader
SVG component to create placeholder loading, like Facebook cards loading.
Stars: ✭ 2,790 (+1011.55%)
Mutual labels:  svg
Quick Picture Viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (-5.58%)
Mutual labels:  svg
Applied Reinforcement Learning
Reinforcement Learning and Decision Making tutorials explained at an intuitive level and with Jupyter Notebooks
Stars: ✭ 229 (-8.76%)
Mutual labels:  jupyter
Jupyter Tips And Tricks
Using Project Jupyter for data science.
Stars: ✭ 245 (-2.39%)
Mutual labels:  jupyter
Term Sheets
Create animated terminal presentations. Export as SVG, animated GIF, or HTML+CSS
Stars: ✭ 243 (-3.19%)
Mutual labels:  svg
Victor
Ruby SVG Image Builder
Stars: ✭ 237 (-5.58%)
Mutual labels:  svg
Ploomber
A convention over configuration workflow orchestrator. Develop locally (Jupyter or your favorite editor), deploy to Airflow or Kubernetes.
Stars: ✭ 221 (-11.95%)
Mutual labels:  jupyter
Svg2pdf.js
A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
Stars: ✭ 231 (-7.97%)
Mutual labels:  svg
Tslab
Interactive JavaScript and TypeScript programming with Jupyter
Stars: ✭ 240 (-4.38%)
Mutual labels:  jupyter
Ember Svg Jar
🍯 Best way to use SVG images in Ember apps
Stars: ✭ 232 (-7.57%)
Mutual labels:  svg
Lunasvg
A standalone c++ library to create, animate, manipulate and render SVG files.
Stars: ✭ 243 (-3.19%)
Mutual labels:  svg
Beakerx
Beaker Extensions for Jupyter Notebook
Stars: ✭ 2,594 (+933.47%)
Mutual labels:  jupyter
Spongedown
Markdown with svg bob support
Stars: ✭ 234 (-6.77%)
Mutual labels:  svg
Vectorlogozone
3,000+ gorgeous SVG logos, perfect for your README or credits page
Stars: ✭ 239 (-4.78%)
Mutual labels:  svg
Darklaf
Darklaf - A themeable swing Look and Feel based on Darcula-Laf
Stars: ✭ 249 (-0.8%)
Mutual labels:  svg
Laue
🖖📈 Modern charts for Vue 2.0
Stars: ✭ 245 (-2.39%)
Mutual labels:  svg

egal

easy SVG drawing in jupyter and elsewhere...

Example

Instructions

Click on the "brush" icon in the jupyter toolbar to create an SVG cell below the current selection.

Labels and Latex

To change the label of a shape, double-click on it and type. Hit enter to finish. To use latex, start and finish the label with $$ as in $$\sum_i i$$.

Animation

The egal canvas shows/overlays a window of frames. This window is specified by the two numbers between the left and right arrow icons. The left number is the first frame included in the window, the right number the last frame. Each object (circles, boxes, freestyle shapes etc.) is associated with its own frame window which appears on the right when selecting the object. An object is rendered on the egal canvas when the egal frame window overlaps with the object frame window.

Using this setup, to generate an animate build-in sequence you can:

  • set the window of the first object to appear to (1,100)
  • set the window of the second object to appear to (2,100)
  • etc.

To click through the animation, set the egal window to (1,1). Then click on the right arrow which will move the frame window to (2,2), and so on. It will look something like this:

Features

egal's focus is on drawing simple graphs:

  • Basic Shapes (circles, rectangles, lines)
  • Freestyle Drawing
  • Connectors
  • Labels, with support for Latex
  • Alignment hints when dragging and resizing
  • Multiple Selection
  • Animation (Build-in & Build-out)
  • Copy & Paste

How Does it Work?

egal creates a raw jupyter cell and stores the edited SVG in the source code field of that cell.

Installation

Get the Python Package

Manually by cloning and changing the python path:

git clone https://github.com/uclmr/egal.git
cd egal
export PYTHONPATH=. 

or (experimental) install python package directly:

pip3 install git+https://github.com/uclmr/egal.git

Install and Enable Extension

jupyter nbextension install --py egal 
jupyter nbextension enable --py egal 

Optional: Server Extension

If you want to use egal outside of a notebook you need to install the server extensions (which allows clients to save the SVG on the jupyter server):

jupyter serverextension enable --py egal 

Then you can edit an SVG on the server via accessing http://localhost:8888/files/draw.html (assuming you run jupyter notebook locally).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].