What’s the Meaning of the Exclamation Mark in a Jupyter Notebook?

What many coders using Jupyter notebooks do not know is that Jupyter notebooks provide you the exclamation mark operator that allows you to execute commands on the underlying operating system. In Jupyter notebooks, the exclamation mark ! executes commands from the underlying operating system. For example, to run the list directory command ls in your … Read more

How to Check Python Version in Jupyter Notebook?

To check the Python version in your Jupyter notebook, first import the python_version function with “from platform import python_version“. Then call the function python_version() that returns a string with the version number running in your Jupyter notebook such as “3.7.11”. You can try this yourself in our interactive Jupyter notebook: Check Version Information Using sys … Read more

How to Check Your TensorFlow Version in Colab?

To check your TensorFlow version in your Jupyter Notebook such as Google’s Colab, use the following two commands: import tensorflow as tf This imports the TensorFlow library and stores it in the variable named tf. print(tf.__version__) This prints the installed TensorFlow version number in the format x.y.z. The following code example uses the dunder attribute … Read more

How to Create an Interactive Web Application using a Jupyter Notebook

Summary: To create an interactive web application in a Jupyter Notebook, use the three libraries ipywidgets, voila, and binder. This requires only basic Python programming skills without the need to learn a new framework. There are various Python tools available to create web applications and frontend GUIs. For example, Flask and Django. As useful as … Read more

How to Use Dash Within a Jupyter Notebook?

Problem Formulation: Can you serve a dash app within a Jupyter notebook rather than in a browser? Answer: Yes! Plotly created two Github projects that enable the serving of dash apps in a Jupyter notebook. The older jupyterlab-dash project is not actively maintained according to its creators from Plotly. You should use have a look … Read more