这是设置opengl和SDL上下文以及窗口的工作
#Importing key libraries.
import numpy as np
import pandas as pd
import seaborn as sns
import scipy.stats as stats
import matplotlib.lines as mlines
from matplotlib import pyplot as plt
from statsmodels.formula.api import ols
# Download rpy2 package
# Note: The r-modules require Rpy2 to be installed, which should first be done using
# "conda install -c conda-forge rpy2"
# using Jupyter lab within the conda navigator (terminal within there).
%load_ext rpy2.ipython
%load_ext rmagic
# Import the necessary objects from rpy2 and acrivate conversion for dataframe columns
from rpy2.robjects import *
pandas2ri.activate()
# Import the r library for anovas
#import afex
%R install.packages("afex")
即使我仍然遇到鼠标事件,鼠标也根本不显示。