How do I save jupyterlab's sidebar width, or set the default width? - jupyter-lab

I recently installed jupyterlab3, which has a lot of great plugins. But I found that I couldn't save its sidebar width Settings, which caused me to manually drag the sidebar to display the full filename every time I opened JupyterLab(even everytime i refresh).
I noticed related issues on github, but I did not find a solution.
https://github.com/jupyterlab/jupyterlab/issues/5314
https://github.com/jupyterlab/jupyterlab/issues/9269
I tried to change --jp-sidebar-min-width in the following two files, but it didn't work.
C:\Users\53082\AppData\Local\Yarn\Cache\v6\npm-#jupyterlab-theme-dark-extension-2.2.4-63a168783ea966530e80abb35a03d0d5e938d3df-integrity\node_modules\#jupyterlab\theme-dark-extension\style\variables.css
C:\ProgramData\Anaconda3\share\jupyter\lab\staging\node_modules\#jupyterlab\theme-dark-extension\style\variables.css
My jupyterlab version is 3.0.14
cmd picture
this is the default width
enter image description here
This is the width that suits me
enter image description here
What should I do to fix my width or set the default width?

Related

QGIS 3 - how to change size of attribute window?

When adding a new feature to a shape file in QGIS 3.4.4. the attributes dialog opens only as a tiny window regardless of the length or number of the attribute columns in the list. I can manually adjust the size of the window but when I add the next features it is tiny again. That soon gets very annoying when many features need to be added.
Here an example screenshot:
Is this a bug or can I somewhere change the settings so that the window automatically opens at an appropriate size? I am running QGIS 3 on MacOs High Sierra 10.13.6.
This is a pretty old post but I was having the same issue so I figured I would post how I fixed it. It might have been patched in later releases because I saw there was a bug report submitted.
I'm Running QGIS 3.8 on mac.
open layer properties, navigate to attributes form (icon below source fields). On the top left drop down menu change "Autogenerate" to "drag and drop designer"
This resolved my problem and the attributes form is full size. I had to repeat the process for all shapefiles I was working on.
default settings
settings to make it work

Change font in wetty.js

Im working with wetty.js and i want to change the font.
I tried to adding a new font in the index.html, wetty.scss and so on.
Also i tried to change the font throught xterm.js (dependency package for wetty.js)
Tried to adding font in Xresources without luck.
Thanks
I disable the option Allow Web Sites To Choose Their Own in firefox
Steps:
Type about:preferences#content in the address bar. Across from fonts and colors, press the Advanced button. On the bottom, turn off Allow Web Sites To Choose Their Own.
source: https://support.mozilla.org/es/questions/1204639#answer-1076474

How Do I Increase the Search Text in my Navigation

I am using Bigcommerce and their them Corner Stone.
How do I increase the size of the "SEARCH" text font?
I attached a screen shot image with a blue circle showing where the "search" text is.
Screen Shot
Thank you
Depending on your theme, you may be able to make this change by navigating to Storefront > My Theme in your back office.
However, it's likely that the font size for that one component is the same for the rest of them; in that case, you may have to make manual changes to the CSS stylesheets by editing your theme files.

set window icon tkinter macosx

This line works fine for my Windows program.
When i run this same file on the Mac OS X, I get a blank page instead of my icon.
Here is the windows line:
self.iconbitmap("Boss.ico")
I have searched relentlusly for an answer I want this icon to work on both platforms. self is the root Tk window if your wondering if it's root or not.
Note: I have tried using icns, .xbm , .gif by loading a photo image and setting thru window attributes all produce the same blank page on the mac.
After 5 days of searching, and this post having been viewed at least 15 times I went directly to the tk/tcl documentation. If I understand this correctly, apparently there is no way to properly set the icon for mac OS X without using special library or other sort of hacks. It would be nice if there were a mac specific documentation for the tkinter library but alas there isn't that I have found. here is the part of the documentation I found:
wm iconphoto window ?-default? image1 ?image2 ...? Sets the titlebar
icon for window based on the named photo images. If -default is
specified, this is applied to all future created toplevels as well.
The data in the images is taken as a snapshot at the time of
invocation. If the images are later changed, this is not reflected to
the titlebar icons. Multiple images are accepted to allow different
images sizes (e.g., 16x16 and 32x32) to be provided. The window
manager may scale provided icons to an appropriate size. On Windows,
the images are packed into a Windows icon structure. This will
override an ico specified to wm iconbitmap, and vice versa.
On X, the images are arranged into the _NET_WM_ICON X property, which
most modern window managers support. A wm iconbitmap may exist
simultaneously. It is recommended to use not more than 2 icons,
placing the larger icon first.
On Macintosh, this currently does nothing.
if anyone has a working solution please post this. I want to accomplish this so that any system can open a freshly installed python and run my application without installing any additional library.
#GarryHurst This is not a solution but I sort of get the idea now:
On Mac, TK decided that the icon will never appear on the window title bar.
Instead, it shows up as the app's Dock icon.
It's most probably a by-design or won't fix issue on their side.
It is showing the icon of the file you are putting in the directory so setting the file to be an app will set the window icon to be the icon of that app.
for example:
root.iconbitmap("/Users/homedir./Desktop/Test apps/Clicker.app")
tk window with icon
I have a coup. Why not change mind, like this.
The emoji library is enough to choose a good-looking icon.
We can do that.:-D
Code
Effect

What causes control text to get cut off?

My VB6 application is having a layout problem on certain end user PCs, but so far we are unable to identify what is causing this.
Normal layout:
Broken layout:
The text on the left are the captions of the radio buttons. The text in the upper right is a label.
I am familiar with two different settings in Windows Control Panel which can affect text size, and initially we suspected this was the cause. In Windows 10, they are:
Control Panel >
Appearance and Personalization >
Display >
(1) "Use these display settings" > "Customize your display"
or
(2) "Set a custom scaling level"
(Terminology was different in earlier Windows versions but I think the features were the same?)
However upon testing these settings with our app neither reproduces the problem.
What else might be causing the text layout issue shown in the image?
This appears to be caused by a Windows bug.
The description & fix as mentioned in the source website are as follows:
if you have a high resolution screen at install time, Win7 will install a larger font set (125%) by default. If you then choose go back to the standard font size (100%), Windows will keep some of the large fonts even though everything else is adjusted for standard fonts, causing programs that use these fonts to break because the text will not always fit inside the GUI.
By editing the Windows registry you can get the original, intended fonts back:
Open the start menu and type regedit and then press Enter.
Locate the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
Find the value MS Sans Serif 8,10,12,14,18,24
Change from SSERIFF.FON to SSERIFE.FON
Find MS Serif 8,10,12,14,18,24
Change from SERIFF.FON to SERIFE.FON
Finally find Courier 10,12,15
Change from COURF.FON to COURE.FON
Restart your system in order for the changes to take effect!
The exact font names may vary depending on locale settings.
I was able to create the problem scenario as described here on Windows 10, and that reproduced the problem with our VB6 app. I think that confirms this as the fix.
A Microsoft blog post seems to be the authoritative original source of this information.

Resources