Simultaneously edit the same ipython notebook in two tabs - jupyter-notebook

As my ipython notebooks get larger, I find myself more and more frequently wanting to quickly move between two sections. Since there is no split-window view, is there any way to edit the same notebook in two browser tabs simultaneously? Naively it seems that you have to reload the notebook in the second window after making changes in the first.
I'd also be interested in any general workflow suggestions for this, thanks!

It's not a perfect solution, but I use section headers and a floating table of contents to jump around to different sections. It's nice that it encourages me to make headings, although it's not super efficient. I use MinRK's extension to make the TOC (here).
If you want to go the TOC route, you should look at the How can I add a table of contents to an ipython notebook? question. The answers there (currently) suggest either MinRK's extension to the notebook as I use, or a simple browser extension that can generate a TOC for any webpage.

Related

Embedded Gist Notebook. Can I start it from a specific cell?

I have intend to embed a long tutorial notebook on my web page, and using Google colab notebook with Gist seems to do what I need. Almost!
The tutorial has multiple parts, and I would love for it to not be split up into multiple notebooks on the backend.
So, is it possible to make my embedded Gist iframe start from a particular cell of the notebook?
That way I could embed it multiple times, but have it start from different cells in different parts of my website, rather than having multiple distinct notebooks.
Thanks!

Powerpoint manipulation - Add a slide at an index OR delete a slide

I've been bouncing between two packages for my needs.
We make quite a few powerpoints at work, and I've been trying to automate the template, so all that's left to do is populate the template with data.
We are pretty data heavy, and the actual content changes pretty drastically, so I'm just trying to create the template to start.
I've created a master template already, which has every possible slide that I would use.
Then using either officer or reporteRs, I'm deleting/editing/creating slides based on the original template.
Basically, my master slide ppt has somewhere around 130 slides, and the real final ppt will have somewhere around 40 or 50 slides, depending on how many slides must be used.
So here's my question/issue -
If I'm using officer -
Is there a way to create a slide at a specific index? I can find this functionality in reporteRs, but not in officer.
If I'm using reporteRs -
Is there a way to delete a slide? I can find this functionality in officer, but not in reporteRs.
I only need one of these to work for my issue to be solved, I just can't find either. If both of the packages could be used simultaneously, that would work just fine but that won't quite work for me either.
Thanks in advance,
Cody

How to highlight lines in Atom Editor?

I'm aware of the different abilities to highlight based on filetype, but what I'm looking for is something similar to how in a typical text editor you can highlight a line (not just change the color text).
Is this possible to do in the Atom editor? If so, how do you do it? Is there a plugin for this?
The reason I want to do this is for organizational purposes, and sometimes the files I am working in our custom files that are not necessarily code but documentation (usually both are together in the same file), and the documentation part is where I want to add these highlights.
The only Atom package I know of that has a somewhat similar functionality is the bookmarks package.
It is an Atom core package, so you most likely have it installed already.
It might not be exactly what you were looking for, since it only allows setting bookmarks on lines of your open files.
As soon as you close a file, the bookmarks are lost.
But while working on several opened files, it can be very useful to quickly navigate through these bookmarks.
The reason why no package like you asked for exists, probably is that it would be really hard or at least impractical to implement.
Imagine you set dozends of highlights on a file which is under version control (git, svn, etc.) and then pull in a newer version of this file where several lines were added, removed, changed, shifted ...
To still be able to show the highlights on the correct lines, the information of such highlights would need to be under the same version control. Essentially you would need to store this highlight on the line itself, which would mean everybody had the same highlights, which is probably not what you want. Because if you wanted that, you could just format your documentation with markdown or similar in the first place ;)

wxWidgets, show what is in directory

I doing a project using a wxWidgets, and we are doing a sample project of copying 1 or many files (if possible) between 2 folders.
I wish that when I choose a folder (using dirdialog or so) and choose the folder, the contents of it shows in a box at the top of the program (Have the image attached)
Our 2 problems are these.
1) I was planning in using a wxBoxSizer or a wxGridSizer. Are they most fitting
The biggest problem though is this:
How can we make the FILES of a folder (for example everything inside the C:) as selectible icons simliar to the Windows Explorer. The DirDialog only gave us the option to choose the folder, but how to get its contents we wish to know.
If it is not possible, then it's a shame but we do wish to implement since, we if possible we'll implement a filter as well (the one on the RHS)
Thanks
Down below is the direct link to how our GUI is currently looking
That blank GREY space should end up where the show file contents should be.
http://s2.postimg.org/fk46h5a49/Capture.png
There is no wrapper for SHGetImageList() in wxWidgets currently, which is really the function you should use under Windows.
But you can use wxMimeTypesManager::GetFileTypeFromExtension() and then wxFileType::GetIcon to approximate it -- and this is the best thing you can do for the other platforms anyhow, to the best of my knowledge.

How do I stop Sublime Text converting Sass variables on pressing tab?

Does anyone know of a way to prevent Sublime Text 3 converting sass variables on pressing tab?
For example, I might type $variable-name and then press tab, intending to insert the : and space, which would be the normal CSS behaviour. Within doc type sass, I get 1variable-name:; instead.
It's rather annoying to have to correct every time, and I'm sure others get irritated with the same. I have the Sass and Emmet packages installed.
Many thanks. Your help is much appreciated.
Too long for a comment...
So I did a little digging last night, and from what I can tell this behavior is hard-coded into Sublime. The command that's executed when Tab is pressed right after a variable is expand_abbreviation_by_tab. Many times, Sublime commands are implemented in .py files, and can so be edited to suit your needs. Unfortunately, I was unable to find any mention of this command anywhere, leading me to believe that it's hard-coded. I suppose a workaround would be to enter a space before hitting Tab, if your end goal is to have the colons : aligned with each other. Another option would be to use the Alignment plugin, available through Package Control. It's very configurable, and I highly recommend it.

Resources