Comments (4)
Hey, though sometimes possible, you should not use the html-file and open it directly with a browser. Rather, you should run a local server. What you could do is the following.
Start the visualization from Python. Now, in ~/.netwulf/
, there appeared two files, both something with *tmp_*.json
. One of them is the network data and the other one is the configuration data.
Copy the ~/.netwulf
directory to some other directory /path/to/other
with
cp -r ~/.netwulf/ /path/to/other
Then change to the directory and start a local webserver
cd /path/to/other
python -m "http.server" 1234
Then, in your browser, open
http://localhost:1234/?config=config_filename.json&data_filename.json
where config_filename.json
should be replaced with the config file in /path/to/other
and similarly with data_filename.json
.
When your question is "I want to save the current configuration", currently there's no other way to use the controls on top of the GUI. You can directly access the config json by clicking on the small gear wheel though. This might change in the future.
from netwulf.
But like in webweb, could we not have a feature "Save to HTML" that creates a standalone html file which people can put in their keynote presentations and web-based research papers? Maybe this should be done on the JavaScript side, but I imagine it's possible and useful in many cases.
from netwulf.
I've recently added an export feature to github.com/benmaier/tacoma, so it is feasible, but one still would have to start a webserver to view the page -- the reason being that javascript does not load files if it is not run from a server. In webweb, they put all the sources (d3, colors, network data) in a single HTML file, apparently that's why it works. Do we want that?
from netwulf.
apparently there's some arguments against loading data as raw JavaScript, they would, however, not directly apply to us: https://betterexplained.com/articles/using-json-to-exchange-data/ . Mostly security reasons
I still think it'd a bit messy though :)
from netwulf.
Related Issues (20)
- label position examples are deprecated in the docs
- visualization with initially given positions is unfrozen when node properties are changed
- When nodes are dragged, labels stay on for that node HOT 6
- Getting Dataset does not have a key 'nodes' HOT 3
- Highlight connected nodes and edges HOT 2
- Problem with node attributes (specifically `bipartite') HOT 12
- Colouring nodes by property (e.g., degree) HOT 2
- Is netwulf available in anaconda? HOT 2
- ntwulf.visualize does not accept network as a dict HOT 5
- Netwulf changes the current working directory HOT 1
- Visualizing in google collab HOT 1
- Can't post visualization back to python HOT 2
- netwulf visualize ignores edge colors HOT 4
- Adding changes in CHANGELOG.md HOT 3
- is netwulf supports directed networkx ? HOT 4
- how to make .exe in Windows with pyinstaller and netwulf included [SOLVED] HOT 1
- some questions HOT 1
- Show edge labels
- nodes disappear when clicking on the nodes on a touchscreen HOT 2
- Canvas size ,self-loops ,large graphs? HOT 2
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 netwulf.