racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
454 stars 93 forks source link

DrRacket on Windows - how to run on stick incl. jupyter - language settings and find-system-path config-dir #256

Open ERIPECH opened 5 years ago

ERIPECH commented 5 years ago

My aim is primarily to set up a portable Racket environment, to realize some smaller applications and have windows 7 or 10 and no rights because of privacy.

1) in Dr. Racket i didn't found to set the human-language permanently to English (very annoying). This Settings are made in the c:/users/name/appdata/roaming/Racket - so not on my usb stick.

Directory should be set to be on the usb stick (relative ). Which file (config.rktd, racketrc.rktl, ..?) and how to edit to set this to run in the local directory.

2) Another feature I would appreciate would be a "single click" to start the jupyter notebook (include newest python release) using the racket kernel.

(All of these may be of interest of also other users - so why not implement this settings to DrRacket in general or is this just a silly idea?)

greghendershott commented 5 years ago

I don't know much about the "portable apps" approach, but can you set the HOME environment variable to your USB stick? Or PLTUSERHOME?

See here.

jbclements commented 5 years ago

related: https://stackoverflow.com/questions/54221960/drracket-local-package-installation-for-windows/54222966?noredirect=1#comment95343177_54222966

Your first question is definitely a matter of setting your PLTUSER home environment variable. Your second question is ... is this a feature request for DrRacket to start jupyter? That doesn't make a lot of sense to me. Maybe that's just me.

mflatt commented 5 years ago

DrRacket initializes preferences from "racket-prefs.rktd" in the "defaults" collection, if that file exists. So, you could set up your preferences as you like, create a "collects/defaults" directory in the DrRacket installation on the USB stick, and then copy "c:/users/name/appdata/roaming/Racket/racket-prefs.rktd" to there.

See also:

http://docs.racket-lang.org/drracket/drracket-files.html?q=preferences#%28part._.Preference_.Files%29

There's not a way to make DrRacket save preference updates to "collects", though.

ERIPECH commented 5 years ago

@jbclements according jupyter see https://www.benfrederickson.com/images/github/language-popularity/scientific.svg - this shoud speek for itself. The lower the entrance barrier to a new tool, the more it will be used ; and my students would love it. It should be simple "click and go" and no hiddenvariable screwdriver guruknowledge issomehowdocumented tryforhours reedtheconfusingdocumentation ... That gives the impression, that everything is that frustrating - which is not the truth for racket and DrRacket!

westfly commented 4 years ago

My aim is primarily to set up a portable Racket environment, to realize some smaller applications and have windows 7 or 10 and no rights because of privacy.

  1. in Dr. Racket i didn't found to set the human-language permanently to English (very annoying). This Settings are made in the c:/users/name/appdata/roaming/Racket - so not on my usb stick.

Directory should be set to be on the usb stick (relative ). Which file (config.rktd, racketrc.rktl, ..?) and how to edit to set this to run in the local directory.

  1. Another feature I would appreciate would be a "single click" to start the jupyter notebook (include newest python release) using the racket kernel.

(All of these may be of interest of also other users - so why not implement this settings to DrRacket in general or is this just a silly idea?)

Have You try this method mentioned by post