carpentries-incubator / cwl-novice-tutorial

Introduction to Workflows with Common Workflow Language
https://carpentries-incubator.github.io/cwl-novice-tutorial/
Other
11 stars 20 forks source link

opening the SVG on MS Windows #145

Open mr-c opened 2 months ago

mr-c commented 2 months ago

https://carpentries-incubator.github.io/cwl-novice-tutorial/03-dependency_graphs/index.html

cwltool --print-dot rna_seq_workflow_2.cwl | dot -Tsvg > workflow_graph_2.svg

Ideally within VS Code

alexiswl commented 2 months ago

WSL2 users running ubuntu can run wslview /path/to/workflow_graph_2.svg, this should open the svg file up in a browser.

Steps to reproduce:

sudo apt install -yq wslu

wslview /path/to/workflow_graph_2.svg

I'd also recommend setting the environment variable BROWSER to wslview in users .bashrc.

This allows the following to work too:

xdg-open "https://google.com"