Text aligned from right to left on Jupyter notebook - jupyter-notebook

I'm running the Jupyter notebook from local Ubunto machine in Windows 10.
The problem is that all the text is aligned to the right side of the screen, including the menu - the "Files" tab for example is on the most right side.
It is very hard to read the text this way.
Is there a way to "convince" the Jupyter notebook to lunch as left to right language?
I tried to define the locale parameters and now everything is en_US.UTF-8.
I also tried to run the jupyter notebook from Edge and Chrome but both lunch with text aligned to the right.
I don't see this problem at other sites, but I don't think it is Jupyter specific issue.
image of my Jupyter Notebook

It turned out that it was the Google Chrome setting after all.
I needed to change the language setting so that the English will be on the top preference.

Jupiter decide it base on browser language as mentioned here. Inside a specific notebook you can press Ctl+Shift+f and select toggle rtl

Related

Inline preview overlays on top of the Markdown document in RStudio

I'm using RMarkdown on a new installation with RStudio. I'm finding that the inline preview is taking up the top two thirds of the text editor for my rmarkdown file. It's appearing, in addition to showing up inline below each paragraph, on top of the paragraphs.
It makes it hard to code or see any of the other work that I'm doing. The preview is fixed to the top of the screen and it stays there even when I scroll up and down in the document.
I can get rid of the inline preview by clicking clear all output.
I think this is probably a bug, but maybe not. I tried restarting RStudio and the issue persists.
If you go to Tools -> Global Options, a window will pop up. Select "R Markdown" on the left and you should see something like the below:
Half-way through, make sure "Show output inline for all R Markdown documents" is unchecked.

Move/Resize Variables Explorer in VSCode Jupyter Notebook

How can I customize the location and size of the Variables Tab in VSCode so I can move it to a split screen?
If that is not possible, how can I run 2 instances of VSCode with the same kernel so the variable explorer only eats up space in the second screen? Is there a better workaround than this?

Changing text cursor color in Jupyter notebooks

I'm using the dark mode in Chrome, so the background in Jupyter notebooks is black, and the text cursor is still black. Is there a way to change the text cursor (the blinking bar) in Jupyter notebooks to white, but keep everything else (all other colors) the same?
Solved it by adding line to the file .jupiter/custom/custom.css
.cm-s-ipython .CodeMirror-cursor {border-left: 3px solid #838184 !important;}
Change #color as you want, as well as cursor width in pixels. However, try to avoid FFFFFF and 000000, because Chrome still converts them to black.
Also, there is one thing I couldn't fix, namely, autocomplete box with white font and highlighting color, so you can see all suggested rows, except initial.
This is a bit late but it's easier to add Jupyter Notebook / Jupyter Lab to your list of sites for Chrome to not change to dark, then use dark mode in Jupyter. You can download custom color themes for Jupyter if you don't like the built-in dark mode. I'm using Jupyter Lab and the URL I added to the list in Chrome was:
http://localhost:8888/lab
This fixed the dark invisible cursor issue for me.
I solved this problem by downloading a jupyter dark theme.
pip install jupyterthemes
jt -t chesterish

Jupyter notebook table style changes when saved as html

I'm using jupyter notebook version 5.2.2 with python
When I display a DataFrame in the notebook the table style looks really nice. Especially the alternating grey and white row colors. When I save the notebook as html the nice style disappears.
Is there any way to keep the style that appears in the notebook itself?
Unfortunately, there is no way to achieve this. I have run into this problem before. When you convert the notebook to HTML you lose that styling.

set tmux/R window background color when using Vim-R

I'm using MacVim and Vim-R to interactively edit and run R code. Everything seems to be working fine, but I can't seem to figure out how to set the background color in the tmux window that R runs in.
To be precise: I open up a .r file with MacVim. Then I type _rf, which causes XQuartz to start up, and a window with the title 'tmux' to open up with R running inside of it. When I highlight lines of code and send them to R from MacVim, everything seems to work fine. But the default background color of the tmux window is white, which makes the nicely colored output text hard to read.
How can I change the background color of the tmux window to something darker?
See this part of the doc to force your plugin to use the right terminal emulator.
If you don't want to do that (I think that you should), you can configure the appearance of xterm in the ~/.Xresources file. This guide gives you useful examples.

Resources