Comments (2)
This isn't currently possible from Python or without a web browser in general. The Escher rendering all happens in the browser DOM, so the only way to run Escher from the command line would be to use 'headless' node.js, as described here. I haven't tried this, but we can put it on the development roadmap.
Alternatively, if the web app is running in a browser, you could generate an Escher map in a hidden div
, and save the SVG file with a JavaScript function, like this:
var b = escher.Builder(map_data, null, embedded_css, { selection: d3.select('#my_hidden_div') };
b.map.save_svg();
from escher.
This headless node.js sounds interesting!
I'm now using b.save_html()
as a workaround.
The html file can be parsed and integrated well.
thank you @zakandrewking for your nice and usefull work and for helping!
from escher.
Related Issues (20)
- Jupyter Widget not working?
- Error installing Jupyter widget
- merging two pathways with common metabolite node
- Issue when HTML element's id string is passed to Builder constructor
- Needed: Method for evaluating AND: MAX
- Using my own metabolic map that I drew on escher HOT 1
- escher git dependency
- Is the Escher widget compatible with JupyterLab 3? HOT 9
- issue with loading a model
- visualize an SMBL model? HOT 1
- Is there a way to draw all reactions from a model?
- Reactions "Absolute value" resets when running in loop in python HOT 1
- Comparison methods for reactions & metabolites with multiple data sets
- Migration from Goodtables to Frictionless Repository
- Using Escher in Google Colab HOT 1
- Importing text into tooltips
- Is it possible to update Jinja2 dependency to >= 3? HOT 3
- Is it possible to automatically calculate the layout of maps?
- Not compatible with the latest version of MarkupSafe (2.1.2)
- When I loaded my model, it was on escher's website, and I couldn't load it.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from escher.