my jupyter header

发布时间 2023-06-01 00:40:37作者: yusisc
from IPython.display import display, HTML
from matplotlib import cm, projections
from mpl_toolkits.mplot3d import Axes3D
from pathlib import Path
from pprint import pprint
import clipboard
import concurrent.futures
import cv2
import math
import matplotlib.pyplot as plt
import numpy as np
import os
import pandas as pd
import pickle
import PIL
import platform
import re
import sys
import time

# import tensorflow as tf
# import torch

############################# section 1. pandas setting up. this should be located before section 2.
pd.set_option("display.max_columns", None)
# pd.set_option("display.max_rows", None)
############################# section 2. matplot setting up.
%matplotlib widget
plt.style.use('dark_background')
HTML('''
<style>
    .jupyter-matplotlib {background-color: #003030;}
    .widget-label, .jupyter-matplotlib-header{color: #b0b0b0;}
    .jupyter-button {background-color: #333;color: #b0b0b0;}
    .cell-output-ipywidget-background {background-color: transparent !important;}
    .cell-output-ipywidget-background pre {color: white !important;}
</style>
''')