remove warnings in jupyter notebook code example
Example 1: jupyter ignore warnings
import warnings
warnings.filterwarnings('ignore')
Example 2: hide error display in jupyter
<ESC> <R> <Y> Enter command mode, change cell to to text, back to code. This hack will remove any output of a cell including error printouts.
Example 3: how to create pop up warnings in jupyter notebook
require(
["base/js/dialog"],
function(dialog) {
dialog.modal({
title: 'Hello world',
body: 'Hi, lorem ipsum and such',
buttons: {
'kthxbye': {}
}
});
}
);