-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request #7
Comments
I have been thinking about that as well, it would be a very convenient feature for sure. I will keep it in the back of my mind, maybe I can figure out a way to add it! |
Do you think a notebook extension like RISE is necessary for this? Or could this be implemented in ipystata directly? |
My limited research on this functionality does suggest that the best way would be to develop a notebook extension that allows the user to apply cell magic to a group of selected cells. The notebook 4.1 release adds multi-cells selection so I hope that someone with more knowledge of developing notebook extensions might be able to build on this and figure out a way to do it. |
I tried to contact an expert: Carreau/jupytercontrib#1 (comment) |
Hello -- Another neat feature might be to have cell magic for mata. It's not a big deal, but instead of typing something like:
It would be nice to just be able to type
This actually has a practical purpose - if one forgets to put the Matt |
Would something like a Having a |
Ties -- What you suggest would be great. One thing to maybe also think about is the difference between starting a Matt |
Hi Matt, I have implemented the I have uploaded a development version to pip, you can install it using: Using it is simple, you run for example:
|
Hi Ties -- First, thanks very much for doing all this! I've checked it out and it works great - and in retrospect, it's probably better to have a heading like Thanks again! Matt |
Hi Matt, Great, you are more than welcome! PyPi is having issues right now but I will push it as an official version somewhere this weekend. 😄 |
This might already be possible, but I am curious if one can break lines within an |
This is not currently possible (see #9 for the reason why). However, it is on my to-do list to write a pre-processor that will use Python to take the code contents of a cell and convert it into "valid" Stata code for the interactive window. This would allow the use of I will try to look into it asap. |
It actually turned out to be a very easy solution. As long as the |
Ties -- Wonderful! I'll give it a try as soon as I get a chance, and thanks for the update! Matt |
Is it possible to toggle cell magic on/off for multiple cells? This would be cool because we wouldn't have to use
%%stata
for every cell.The text was updated successfully, but these errors were encountered: