Git Product home page Git Product logo

Comments (8)

mpacer avatar mpacer commented on May 28, 2024 1

OH! i see what's happening. you have a .bib file in the same directory and we're using that as a current proxy for you wanting to run bibtex. We'll need a smarter check for whether someone is using a bibfile in

def bib_condition(self):
"""Determines whether BiBTeX should be run.
Returns
-------
boolean
true if BibTeX should be run.
"""
return any([re.match(r'.*\.bib', x) for x in set(glob.glob("*"))])

We were trying to avoid parsing the file as a first pass… but i think we may need to do so…

@ian-r-rose, does that sound right to you?

from jupyterlab-latex.

mpacer avatar mpacer commented on May 28, 2024

Did you already have an test.aux file before running show LaTeX preview? If so, does deleting that and retrying fix it?

from jupyterlab-latex.

epifanio avatar epifanio commented on May 28, 2024

I checked, there is no test.aux . (I'm running git master for both jupyterlab and LaTex extension.

from jupyterlab-latex.

ian-r-rose avatar ian-r-rose commented on May 28, 2024

Yes, that sounds correct. Does it fix the problem to temporarily remove the .bib file?

from jupyterlab-latex.

epifanio avatar epifanio commented on May 28, 2024

I confirm, removing the .bib files the pdf is generated correctly. No LaTex errors, but the pdf preview window do not render the pdf (spinning jupyter logo ). The built pdf is 2.5 Mb in total size and has one image. If I double-click on the pdf file from the jupyterlab file list, it takes a very long time, but eventually, gets rendered.

from jupyterlab-latex.

mpacer avatar mpacer commented on May 28, 2024

That sounds like an issue with pdf.js… @ian-r-rose, any reason why pdf.js would timeout?

@epifanio do you have a link to these resources publicly anywhere that we could test and investigate?

from jupyterlab-latex.

epifanio avatar epifanio commented on May 28, 2024

I can add a temporary unix user on jupyterhub for you to investigate the issue.

from jupyterlab-latex.

EWouters avatar EWouters commented on May 28, 2024

I have the same issue. I see the problem had been identified. It shouldn't be too hard to parse the tex file for any reference to the bib package right? Maybe also parse the included tex files...

This is a really cool addition to Jupyter!

from jupyterlab-latex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.