Snips & Tips
Snips & Tips
  • Snips & Tips
  • 📊Data Science
    • Polars Dataframe Library
    • Loading large data
    • Pandas
      • Pandas Apply Function
    • Apache Spark
      • Custom Transformer
    • Data Visualizations
    • Jupyter Notebooks
      • Jupyter Notebook Structure
    • Probability
    • Statistics
      • Statistical Tests
      • Z - Test
      • Hypothesis Testing
    • SQL
      • SQL Tips
      • Creating new columns
  • ☘️Deep Learning
    • Backpropagation in Deep Learning
    • Pytorch Early Stopping
    • Optimizers
  • Pytorch Tensor Shapes
  • 🔖Machine Learning
    • Handling Imbalanced Dataset
    • Time Series Forecasting
      • Hierarchical Time Series Forecasting
      • Facebook Prophet
      • Misc
    • Handling high dimensionality data
      • Weight of evidence and Information value
    • Debugging ML Models
    • Feature Engineering
      • Time Series
      • Outlier Detection
      • Categorical Encoding
      • Feature Scaling
  • 🐲DSA
    • Arrays
  • 🖥️WEB DEV
    • Typescript
    • React State Management
    • Redux Boilerplate
    • Intercept a HTTP request or response
    • this keyword
    • Array Methods
    • Throttle Debounce
    • Media Queries
    • React Typeahead Search
  • Replace text with React Component
  • 💻Product Analytics
    • Product Sense
    • Customer Segmentation
  • 🖥️Terminal
    • Terminal Commands
    • Jupyter Notebook 2 HTML
  • 🪛Tools and Libraries
    • Web Based
    • Databases
  • 🚟Backend
    • Fast API CRUD
    • Scalable APIs
  • 💸Quant Finance
    • Misc
    • Factor Investing
  • 🎮Game Dev
    • Misc
  • 🛠️Architecture
    • Docker
    • AWS CDK
  • 🦠Artificial Intelligence
    • AI Engg
Powered by GitBook
On this page
  • Some tips about Jupyter Notebooks
  • Show multiple outputs
  • Alert Boxes
  • Run SQL queries
  • Print Markdown in Jupyter Notebook

Was this helpful?

Edit on GitHub
  1. Data Science

Jupyter Notebooks

PreviousData VisualizationsNextJupyter Notebook Structure

Last updated 5 months ago

Was this helpful?

Some tips about Jupyter Notebooks

Show multiple outputs

By default jupyter notebooks only outputs once per cell. If you want to display multiple outputs use the following code snippet```python

from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"

If you want to print multiple varibles in one line then just put the names of varibles with comma in between

Alert Boxes

<div class="alert alert-danger">
    <b> Danger </b> Danger alert box.
</div>

Run SQL queries

Use JupySQL plugin

Print Markdown in Jupyter Notebook

from IPython.display import Markdown, display

display(Markdown('**bold**'))
📊
https://github.com/ploomber/jupysql
Quick Start — Python documentation
Logo