(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| from flask import Flask, make_response | |
| app = Flask(__name__) | |
| @app.route("/simple.png") | |
| def simple(): | |
| import datetime | |
| import StringIO | |
| import random | |
| from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the | |
| software to the public domain. We make this dedication for the benefit |
| # Demo of late binding in Python's closures and how to avoid it when needed | |
| functions = [] | |
| for n in [1, 2, 3]: | |
| def func(x): | |
| return n*x | |
| functions.append(func) | |
| # You would expect this to print [2, 4, 6] | |
| print( |
Warning This is SEVERELY outdated, the current jupyter version is > 6.X, please refer to your current jupyter notebook installation!
Disclaimer : I just copied those shortcuts from Jupyter Menú > Help > Keyboard Shortcuts, I didn't wrote them myself.
Check your current shortcuts in your Help, shortcuts coule have been modified by extensions or your past self.
| 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() |