I'm new to programming and this forum. My problem is that latex code in markdown cells in a Jupypter notebook opened in vs code won't compile properly. I know that there are several threads already here in this forum and in the internet, but nothing worked so far.
I got to the point where I completely reinstalled my macbook.
So I run the latest VS Code Version on High Sierra, Python is installed via condo and my vs code extensions are python from microsoft and the Jupypter extension.
When VS code is newly installed first everything works but the second time the layout of the Jupyter notebooks changes and latex code won't compile any more.
So The first picture is how it looks on my computer, the second is how it should look. I also recognize, the look of the notebook is slightly different as kernel and host information are (in the second photo) visualized on top of the notebook - below the tabs there is a bar that show the information and also the play sign and so on to run cells.
The weird thing is, that in the beginning, first time after complete installation, on my computer it looked like it should, second time (and every time after that) it changed and it's not working any more without me changing anything.
Does anybody have a clue how to solve this problem?
Thanks a lot!
first pic - my computer
second pic - how it should look
Related
I am having massive trouble with using vpython in jupyter notbooks. I'm creating small animations with vpython. After a couple of minutes when I try to run a cell, it will either not show any output or will yield a error message "object could not be called".
The only fix I found for this is to restart or change the kernel. Most times it works then for the next few minutes until it stops again. This is really annoying and prevents real progress.
pictrue of error message with example code
all used objects have been imported in another cell before this one.
I am running vpython 7.3.2 and anaconda navigator 1.6.10 on a mac with High Sierra. As a browser I use Chrome.
Thank u for every hint to fix this permanently in advance!
Cheers,
Gordon
Try asking your question on the vpython forum and perhaps provide a sample notebook on github where with instructions on how to reproduce the problem.
https://groups.google.com/forum/?fromgroups&hl=en#!forum/vpython-users
Here is a link to demo vpython notebooks running in the cloud using binder service.
https://mybinder.org/v2/gh/BruceSherwood/vpython-jupyter/master?filepath=Demos
If you provide a notebook on github that demonstrates the problem then it should be reproduceable when running on mybinder.
https://mybinder.org/
I opened some Shiny apps today and discovered that, when I run them in RStudio, every piece of text in each of the apps was in italics -- in headers, select-input menus, and even data tables. Nothing in any of the apps is supposed to be (nor ever has been) italicized. The error occurs exclusively when I run the apps locally in RStudio; everything looks normal when I run it locally in a browser or when I go to the links where they are deployed.
Nothing in the files has changed since yesterday (when they were fully functional) and my RStudio is fully updated. I updated R and all the relevant packages but it did not make a difference.
Any idea what's going on or how to fix it?
Thanks!
I have installed the anaconda python3 distribution on Windows 7. The python command line works fine. When I type "ipython notebook", however, the server starts and the browser starts and points to the correct local URL (http://localhost:8888/tree), but the resulting page looks awful in my browser. It doesn't look anything like the documentation. It says "Jupyter" at the top, but the elements are not aligned. I've posted a screen-shot at:
Perhaps a .css file (or something) isn't being read correctly. Eventually, I want to run a Julia profile, and I am sure this is a simple problem (I just can't figure it out).
I had a R script open in RStudio. The file was saved many times over the course of several weeks and worked perfectly fine when RStudio was opened and closed. However, today, I restarted my computer and when I opened RStudio and more specifically the script that I mentioned, all of the R code vanished, leaving a single long row of "....." with red highlighting.
When I tried to open the R file in other text processors such as Sublime Text and Notepad++, only a line of zeroes was visible. None of my other R files were affected. I'm currently running Windows 8.1 and have the latest version of R and RStudio. What can I do to recover the code in the file and prevent something like this from happening again?
It might be an old thread and it might have been covered in 'user4458796' answer in suggestion #1 ("Use the history..."), but:
My friend had the same problem and we managed to recover the code from a 'history_database' files located on Windows at:
'C:\Users\%user%\AppData\Local\RStudio-Desktop\'
I assume there is an equivalent location in Linux in general.
Hopefully I won't get downvoted, just sharing my 2cents.
Ben.
It's not clear what happened to corrupt your file (and thus how to fix it if possible) and it is kind of ominous that you're just seeing 0's in other text editors, but I'll give you my best suggestion and some tips.
Suggestions for Attempting Recovery
Since your other R files were unaffected, you should have a messy record of your code in the history. Use the history to reconstruct your code.
Access a copy of your file from any version control, cloud, or offline backup you may have used -- git, SVN, iCloud, SugarSync, Dropbox, etc (I realize you probably wouldn't have posted this question if that were an option, but I had to throw it out there).
Use a Hex or sector editor to try to recover the data.
Use a data recover program to find an old version of your file.
Inspect your trash or recycling bin to see if it has an old version. Depending on your OS and the settings of how you (insecurely or securely) delete files, then you may be able to undelete a deleted version, even if it's not immediately available.
Try different methods of recovering text data from corrupted text files like OpenOffice's and Microsoft's suggestions.
Tips for the Future
I know that hindsight is 20/20, but a few quick tips for good measure:
Use version control. Git is supported in RStudio's GUI interface.
Have more than one version of your file. Many professors and professionals recommend writing/storing code in a text editor and using your IDE only for the working copy.
Make backups. Distinct from #2, you should backup your files to a hard drive, flash drive, or cloud service like Dropbox or Spideroak.
I am using the LATEST (2.2.0) ipython notebook, when I create a notebook with a loop to write many lines (about 20000 lines), then it run forever I guess since I always see the running icon at the top right. Even if I restart the computer and reopen the notebook again, it will into a running mode automatically, then I almost unable to do anything in this page. I have to copy the code and new another page to fix it.
How can I fix such hang issue during open a too large notebook? I have tried the kernel "interrupt" and "restart" menu and it seems no any effect at all.
IPython notebook is not intended to do such tasks with too much calculation or too many output data because actually such things is for standalone program rather than a notebook.
To fix such issues, you need to create a standalone application (script) to do it from console, then paste the meaningful result into IPython notebook.