You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/user_guides/jupyter.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ This code initializes JupyterHub to work with this run and contacts the web port
55
55
56
56
---
57
57
58
-
For updating data files, we generally accommodate for two approaches: one where you want to multiple data files for each timestamp called, and one where you maintain multiple data files for a single timestamp but replace it per timestamp call. Both workflows utilize `self.services.add_analysis_data_file` .
58
+
For updating data files, we generally accommodate for two approaches: one where you want to multiple data files for each timestamp called, and one where you maintain multiple data files for a single timestamp but replace it per timestamp call. Both workflows utilize `self.services.add_analysis_data_files` .
59
59
60
60
For the approach where data files for multiple timestamps are maintained, the below code provides an example of loading it from a file which is regularly updated with the IPS state:
61
61
@@ -70,7 +70,7 @@ For the approach where data files for multiple timestamps are maintained, the be
70
70
# and that this file is updated per timestamp call
71
71
# In this example, we just want to snapshot our IPS state and save it in our JupyterHub workflow
72
72
data_file =f'{timestamp}_state.json'# get current data file
73
-
self.services.add_analysis_data_file(
73
+
self.services.add_analysis_data_files(
74
74
current_data_file_path=data_file,
75
75
timestamp=timestamp,
76
76
)
@@ -88,7 +88,7 @@ Or, if you only want to maintain a single timestamp, set the "replace" flag to T
- source_notebook_path: location you want to load the source notebook from. This can be either an absolute path, or an IPS-appropriate relative path.
1999
-
- dest_notebook_name: (optional, default None) filename of the notebook to use when saving it to the IPS Portal. If not provided, this will defauly to the filename of the source notebook.
1997
+
:param source_notebook_path: location you want to load the source notebook from. This can be either an absolute path, or an IPS-appropriate relative path.
1998
+
:param dest_notebook_name: (optional, default None) filename of the notebook to use when saving it to the IPS Portal. If not provided, this will defauly to the filename of the source notebook.
Subscribe to topic *topicName* on the IPS event service and register *callback* as the method to be invoked when an event is published to that topic.
2076
+
2077
+
Multiple components can subscribe to the same topic name; if this is the case, each component will handle the message separately when the topic is published to.
2078
+
2079
+
:param topicName: the name of the topic to subscribe to, top-level namespace
2080
+
:param callback: the function which will be called on receiving a message
0 commit comments