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
c1 = dfj.hvplot.scatter( | |
"x_col_name", | |
"y_col_name", | |
xlabel="My x label", | |
ylabel="My y label", | |
).options( | |
logx=True, | |
logy=True, | |
color="red", | |
fontsize={ |
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 pandas as pd | |
from visidata import vd | |
df = pd.DataFrame({'a': [1, 2, 3], 'b':[4, 5, 6]}) | |
vd.view_pandas(df) |
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
# Some class definition out of your control | |
class JaredLewis: | |
def loves(self): | |
return 'Savage Garden' | |
# A method you wish the class had | |
def hates(self): | |
return "Randy Travis" | |
# Instantiate the class |
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
c1 = hv.Curve(...) | |
c2 = hv.Curve(...) | |
obj = hv.Layout([c1, c2]).cols(1).options(shared_axes=False) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# This is a fix for the following notebook error in django notebooks | |
# OperationalError: SSL SYSCALL error: EOF detected | |
from django.db import connections | |
conn = connections['default'] | |
conn.connect() |
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
------------------------------------------------------------------------------ | |
-- Identify the kind they are using for scoring | |
------------------------------------------------------------------------------ | |
WITH scored_entity_kind AS ( | |
SELECT | |
id | |
FROM | |
entity_entitykind | |
WHERE | |
name='collection.Role' |
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
# Keywords: zombies processes ps pstree kill | |
# See all processes with pids and session ids | |
ps -efj | grep -E 'UID|python' | |
# See process tree with pids | |
pstree -ap | |
# Kill processes using session id | |
pkill -s <session_id> |
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
# First, from within the docker ambition container run | |
# lamb.instance sync | |
# Then run this code in a container | |
# You'll have to choose an instance, but it doesn't matter | |
# which one. Multiquery can access all instances from anywhere. | |
import django | |
django.setup() |
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
command-shift-v |
NewerOlder