I hereby claim:
- I am cheeksthegeek on github.
- I am cheeksthegeek (https://keybase.io/cheeksthegeek) on keybase.
- I have a public key ASAreqGZuX6OBPlZndil-Xd9_ekAz3z4zeF0dZ2pz-Hp7go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
.markdown-source-view, .markdown-preview-view { | |
max-width: 1200px; /* change this according to whatever */ | |
margin: auto; | |
} | |
/* | |
save this snippet as a file in your .obsidian/snippets path inside your obsidian vault | |
and then go to obsidian settings > Editor > Display > turn off readable line length |
.image-embed[alt]:after { | |
content: attr(alt); | |
display: block; | |
margin: 0.2rem 1rem 1rem 1rem; | |
font-size: 90%; | |
line-height: 1.4; | |
color: var(--text-faint); | |
} | |
Use these markdown code blocks in the actual cells in the jupyter notebook
Note: you can add the most used libs here
inst_flask = '''from flask import Flask
app = Flask(__name__)'''
exec(inst_flask, globals(), locals()) # added globals and locals to make it work in jupyter notebook, as it is not a script and hence does not have global and local variables
# make a lambda function for run_app which fills in the number in port parameter of run method
run_app = lambda port=None,host=None, debug=None, load_dotenv=True, : exec(f'''if __name__ == "__main__":