<jupyter_start><jupyter_text>EEG/MEG signal preprocessing - Session 1 Max Planck School of Cognition, Methods in Cognitive Neuroscience, June 2021 Contact: <NAME> @ Neurology Dept., MPI CBS, Leipzig, Germany, <EMAIL> This notebook is provided to you for the hands-on session 1, where you will go through the preprocessing steps that you learned in the part-1 tutorial for a new subject.<jupyter_code>import mne  # MNE Python
from os.path import join  # this function is used to build the directories 
import numpy as np  # numpy is a library for working with matrices
import scipy.signal as sp  # scipy.signal implements the signal processing functions
# import matplotlib
# matplotlib.use('TKAgg')
from matplotlib import pyplot as plt  # matplotlib is the most common used package to do plotting in Python
from IPython.display import Video, Image
import eeg_tutorial_help_functions as hf  # help functions for this tutorial

# the backend of matplotlib for plotting interactive plots in jupyter notebook on jupyter hub of GWDG
%matplotlib notebook<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.045454545454545456, 'fraction_numerical': 0.006493506493506494, 'mean_word_length': 5.1657142857142855, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '47350', 'license': 'MIT', 'n_tokens_mistral': 314, 'n_tokens_neox': 293, 'n_words': 145, 'path': 'EEG_tutorial_Session1.ipynb', 'repo_name': 'minajamshidi/MPSCog-MCN2021', 'size': '1103'}