nbstata icon indicating copy to clipboard operation
nbstata copied to clipboard

Change Jupyter Lab export menu wording from "Executable Script" to "Stata (.do)"

Open gaksaray opened this issue 2 years ago • 4 comments

Would it be straightforward to add this functionality? As in @ticoneva's pystata-kernel:

Screen Shot 2023-02-26 at 12 12 22 AM

gaksaray avatar Feb 26 '23 00:02 gaksaray

That functionality is already present, the same as in pystata_kernel. In Jupyter Lab, it's just referred to as "Executable Script" in that menu, but it will output a .do file.

Are you seeing something different in nbstata's behavior in this regard, or just checking before you try it?

hugetim avatar Feb 26 '23 14:02 hugetim

Oh, right. I was expecting to see "Stata (.do)" on Jupyter Lab so must have missed that. Would it make sense (and be possible) to relabel this to be in line with the Jupyter Notebook label?

gaksaray avatar Feb 26 '23 16:02 gaksaray

I would like that, too. I'll look into whether it's possible.

hugetim avatar Feb 26 '23 18:02 hugetim

Ok, I see one way that is possible but fairly involved. I'd have to make it so that pip-installing nbstata installs a JupyterLab extension that adds a menu item. In principle it shouldn't be too complicated, but my experience of working with the syntax highlighting extension has been pretty exasperating (though maybe that's mostly because I'm trying to do some JavaScript stuff without properly learning JavaScript).

hugetim avatar Feb 26 '23 20:02 hugetim