15 lines
462 B
Plaintext
15 lines
462 B
Plaintext
mkdir tmp_k
|
|
cd tmp_k
|
|
cp -a ~/github/ipykernel/* .
|
|
for i in *py */*py */*/*py; do
|
|
sed -i '.bk' -e 's/ipkernel/yapkernel/g' $i
|
|
sed -i '.bk' -e 's/ipykernel/yap_kernel/g' $i
|
|
sed -i '.bk' -e 's/IPKernelApp/YAP_KernelApp/g' $i
|
|
sed -i '.bk' -e 's/IPythonKernel/YAPKernel/g' $i
|
|
sed -i '.bk' -e 's/IPKernel/YAPKernel/g' $i
|
|
done
|
|
mv ipykernel yap_kernel
|
|
mv ipykernel_launcher.py yap_kernel_launcher.py
|
|
mv yap_kernel/ipkernel.py yap_kernel/yapkernel.py
|
|
|