Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
3b96554b
Commit
3b96554b
authored
2 years ago
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
cleanup of CCS IPython startup config
parent
adb990f4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Ccs/.ipycfg.py
+5
-2
5 additions, 2 deletions
Ccs/.ipycfg.py
Ccs/.ipyloadcfg.py
+7
-39
7 additions, 39 deletions
Ccs/.ipyloadcfg.py
with
12 additions
and
41 deletions
Ccs/.ipycfg.py
+
5
−
2
View file @
3b96554b
import
gi
import
gi
import
dbus
gi
.
require_version
(
'
Gtk
'
,
'
3.0
'
)
gi
.
require_version
(
'
Gtk
'
,
'
3.0
'
)
\ No newline at end of file
# disable autosuggest in IPython >= 8
# c = get_config()
# c.TerminalInteractiveShell.autosuggestions_provider = None
This diff is collapsed.
Click to expand it.
Ccs/.ipyloadcfg.py
+
7
−
39
View file @
3b96554b
...
@@ -10,47 +10,15 @@ import ccs_function_lib as cfl
...
@@ -10,47 +10,15 @@ import ccs_function_lib as cfl
gi
.
require_version
(
'
Gtk
'
,
'
3.0
'
)
gi
.
require_version
(
'
Gtk
'
,
'
3.0
'
)
# try:
# with open('.sharedvariables.bin', 'rb') as fdesc:
# shared = pickle.load(fdesc)
# cfg = shared['cfg']
# except:
# pass
# finally:
# fdesc.close()
#logger = shared['logger']
#sys.stderr = io.StringIO()
#Connect to every open DBus,
dbus_type
=
dbus
.
SessionBus
()
import
confignator
import
confignator
cfg
=
confignator
.
get_config
()
cfg
=
confignator
.
get_config
()
def
kwargs
(
arguments
=
{}):
dbus_type
=
dbus
.
SessionBus
()
return
dbus
.
Dictionary
({
'
kwargs
'
:
dbus
.
Dictionary
(
arguments
,
signature
=
'
sv
'
)})
'''
def
kwargs
(
arguments
=
None
):
# Now done in editor.py
# Connect to all open applications
if
arguments
is
None
:
try:
arguments
=
{}
Bus_Name_poolviewer = cfg.get(
'
dbus_names
'
,
'
poolviewer
'
)
pv = dbus_type.get_object(Bus_Name_poolviewer,
'
/MessageListener
'
)
return
dbus
.
Dictionary
({
'
kwargs
'
:
dbus
.
Dictionary
(
arguments
,
signature
=
'
sv
'
)})
except:
pass
try:
Bus_Name_poolmgr = cfg.get(
'
dbus_names
'
,
'
poolmanager
'
)
pmgr = dbus.SessionBus().get_object(Bus_Name_poolmgr,
'
/MessageListener
'
)
except:
pass
try:
Bus_Name_monitor = cfg.get(
'
dbus_names
'
,
'
monitor
'
)
monitor = dbus.SessionBus().get_object(Bus_Name_monitor,
'
/MessageListener
'
)
except:
pass
try:
Bus_Name_plotter = cfg.get(
'
dbus_names
'
,
'
plotter
'
)
plotter = dbus.SessionBus().get_object(Bus_Name_plotter,
'
/MessageListener
'
)
except:
pass
'''
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment