This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* DataGrip extension to export results to markdown. | |
* The markdown table format is supported by Github and Jira. I haven't tested others. | |
* | |
* Tested on DataGrip 2016.2.2 | |
* - Open the File view. View -> Tool Windows -> Files | |
* - Activate the "Scratches" tab. You should see "Files", "Scopes", and "Scratches". | |
* - Copy this file to Extensions/Database Tools and SQL/data/extractors/Markdown.JavaScript.md.js | |
* - Run a query with some results. | |
* - Change the export format to Markdown.JavaScript.md.js and click "To Clipboard". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from getpass import getpass | |
from glob import glob | |
import numpy as np | |
import os | |
import sh | |
import shutil | |
def get_data_dir(*args, relative=False): | |
"""Return the path to the data directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bokeh.io import output_notebook | |
output_notebook() | |
from bokeh.io import show, vplot | |
from bokeh.models import ColumnDataSource, CustomJS | |
from bokeh.models.layouts import HBox | |
from bokeh.models.widgets import Button, DataTable, Select, Slider, TableColumn | |
from bokeh.sampledata.periodic_table import elements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bokeh.embed | |
import bokeh.io | |
import bokeh.models | |
import bokeh.models.widgets | |
import bokeh.plotting | |
import pandas as pd | |
from pandas_datareader import wb | |
bokeh.plotting.output_notebook() |