Skip to content

Instantly share code, notes, and snippets.

View qnicole-zakka's full-sized avatar

qnicole-zakka

View GitHub Profile
@qnicole-zakka
qnicole-zakka / Python3 Virtualenv Setup.md
Created June 15, 2020 23:55 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@qnicole-zakka
qnicole-zakka / webdriver.py
Created March 16, 2021 01:01
Set the web driver manually if system path is still not recognized; Application: Bokeh export plots
# web browser and driver option
from selenium.webdriver import Chrome, ChromeOptions
options = ChromeOptions()
options.add_argument('--headless')
web_driver = Chrome(executable_path=r'C:\Windows\chromedriver.exe', options=options)
@qnicole-zakka
qnicole-zakka / bokeh_svg_export.py
Created March 16, 2021 01:02
Holoviews with Bokeh as backend, render HTML pages into SVG
# try exportation with Bokeh backend to svg
from bokeh.io import export_svgs
p = hv.render(chord_plot, backend='bokeh')
p.output_backend = "svg"
export_svgs(p, filename="chord.svg", webdriver=web_driver)