How to disable password request for a Jupyter notebook session?

The following is very unsafe, but you can remove the password completely with: jupyter notebook –ip=’*’ –NotebookApp.token=” –NotebookApp.password=” Without –NotebookApp.password=”, when connecting from a remote computer to a local Jupyter launched simply with: jupyter notebook –ip=’*’ it still asks for a password for security reasons, since users with access can run arbitrary Python code on … Read more

Simple way to measure cell execution time in ipython notebook

The only way I found to overcome this problem is by executing the last statement with print. Do not forget that cell magic starts with %% and line magic starts with %. %%time clf = tree.DecisionTreeRegressor().fit(X_train, y_train) res = clf.predict(X_test) print(res) Notice that any changes performed inside the cell are taken into consideration in the … Read more

What is the meaning of exclamation and question marks in Jupyter Notebook?

Both of these marks will work in a Jupyter Notebook. The exclamation mark, !, is used for executing commands from the underlying operating system; here is an example using Windows’ dir: !dir # Result: Volume in drive C has no label. Volume Serial Number is 52EA-B90C Directory of C:\Users\Root 27/11/2018 13:08 <DIR> . 27/11/2018 13:08 … Read more