File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ pub struct KernelInfoReplyFull {
41
41
/// Version of messaging protocol
42
42
pub protocol_version : String ,
43
43
44
- /// Unofficial feature flag to indicate that the kernel implements JEP 65 .
45
- pub support_iopub_welcome : bool ,
44
+ /// List of feature flags supported by the kernel. See JEP 92 .
45
+ pub supported_features : Vec < String > ,
46
46
47
47
/// The execution status ("ok" or "error")
48
48
pub status : Status ,
@@ -72,7 +72,7 @@ impl From<KernelInfoReply> for KernelInfoReplyFull {
72
72
Self {
73
73
// These fields are set by Amalthea
74
74
protocol_version : String :: from ( "5.4" ) ,
75
- support_iopub_welcome : true ,
75
+ supported_features : vec ! [ String :: from ( "iopub_welcome" ) ] ,
76
76
77
77
// These fields are set by the Amalthea user
78
78
status : value. status ,
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ fn test_amalthea_kernel_info() {
38
38
frontend. recv_shell( ) ,
39
39
Message :: KernelInfoReply ( reply) => {
40
40
assert_eq!( reply. content. language_info. name, "Test" ) ;
41
+ assert_eq!( reply. content. protocol_version, "5.4" ) ;
42
+ assert!( reply. content. supported_features. contains( & String :: from( "iopub_welcome" ) ) ) ;
41
43
}
42
44
) ;
43
45
You can’t perform that action at this time.
0 commit comments