-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyPadStart.py
60 lines (51 loc) · 2.25 KB
/
pyPadStart.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# PyPadPlusPlus: Startup script
#
# Set the path to the Python file or the folder that contains pythonw.exe,
# e.g. "C:\\programs\\Anaconda3". If pythonPath is None, the internal Python
# distribution of Notepad++ PythonScript is used. Kernel restart features is
# only available for the external Python kernel. Python 2.x and 3.x
# are supported. Make sure that the environment variables are set for the
# loaded Python installation.
#
pythonPath = None
# In case of problems with certain libraries (e.g. numpy, matplotlib, Qt) set
# the required environment variables of your Python distribution manually by:
# import os
# os.environ['PATH'] =
# To use multiple interactive matplotlib windows, pyPadPlusPlus
# runs an internal matplotlib event handler during idle time.
# If this cases any problems, set it to False.
# The matplotlib event handler is activated when matplotlib
# is imported. In case matplotlib is imported implicitly by
# another module, you must add to a code line a comment that
# contains the word "matplotlib".
#
matplotlib_eventHandler = True
# Cell highlighter underlines comments starting with #%% to highlight
# code cells. This can slowdown Notepad++ during heavy computational load.
#
cellHighlight = True
# mouseDwellTime in milliseconds sets the time until a popup is shown
# when mouse movement stops at a certain variable.
#
mouseDwellTime=200
# When set to False popups appear only with mouse hover over selected variables.
#
popupForUnselectedVariable = False
# Evaluates any selected expression with mouse hover. Be carefull with this
# option set to true, since selected functions can be called unintentionally.
#
popupForSelectedExpression = False
# The latter two options are recommended to be set to false to prevent unintentional
# code execution. The two features are allways active for the defined keyboard shortcut
# linked to script pyPadCalltip.py (e.g. <Alt> + <Space>).
# Start pyPadPlusPlus
import Npp, pyPad
Npp.pypad = pyPad.pyPadPlusPlus(
externalPython=pythonPath,
matplotlib_eventHandler=matplotlib_eventHandler,
cellHighlight=cellHighlight,
popupForUnselectedVariable=popupForUnselectedVariable,
popupForSelectedExpression=popupForSelectedExpression,
mouseDwellTime=mouseDwellTime)