Juputer tab completion display options - jupyter-notebook

I am trying to set up tab completion in Jupyter notebook the same way it shows up in jupyterlab so the type of command is listed by it. in notebook it pulls up the list without this functionality (see pic below). Is there a way to do this in notebook?

Related

Is there a way to collapse output produced in a Jupyter notebook?

I am creating a Jupyter notebook to demo some functions that I have created and the outputs they produce. Is there a way to setup a Jupyter notebook such that any output produced after running a cell appears within an already collapsed cell? My motivation for this is that large output is printed by all of my functions, and I would prefer for the notebook to not become cluttered as I am demoing the functions.
Thank you in advance!

How to selectively print only WARNING and/or ERROR in a Jupyter Notebook (as well as CoLab Notebook) cell?

Users can get frustrated with a lot of text output after executing a Jupyter Notebook cell. They can suppress the entire output by using magic command %%capture. However, sometime they are interested in ERROR/WARNING messages (if any), and disregard the rest.
Is it possible to selectively display ERROR/WARNING messages only? The trick should also work with Google CoLab's Notebook.

Change jupyter notebook theme to highlight R functions

I'm using the R programming language with jupyter notebook, but functions are not highlighted like for Python. Is there a way to modify the default theme?
Just to be clear, below I posted 2 images to show the difference between jupyter notebook and RStudio:
as you can see, functions like length, sort etc. are painted with their own color.

How to execute code on Jupyter Notebook when opening it

I don't know if it's possible but I would like to execute Python code inside my Jupyter notebook when opening it.
I know that I can go to Cell >> Run All, but what I am looking for is a way to automatically do it.
1) If you have nbextensions installed, you can designate "initialization cells", which run when the notebook is run. You define them using the cell -> cell type options from the menu.
2) Javascript:
from IPython.display import display, Javascript
display(Javascript("Jupyter.notebook.execute_cells_below()"))
3) For full autonomy from cells you can always import your python code, replacing
cell boundries with function calls.
In Jupyter you have to run the code cell by cell,
another shortcut is SHift+Enter to run.
If you want to run all the codes in same time you can copy it to SPyder and run.

Is there a way to print the live output of a cell in Jupyter Notebook to a MacBook Touch Bar?

Or even to a file or cmd prompt so I can make a script to display it myself?
I am using XGboost on a project of mine and I would like to see the validation results in the touch bar so I don't have to switch between tabs to check up on it.
The terminal results from XGBoost doesn't show the eval metrics so I can't get it from the terminal directly.

Resources